mirror of
https://github.com/danog/laravel-madeline-proto.git
synced 2024-11-26 11:54:40 +01:00
Fixing invalid namespace for TelegramSession model
This commit is contained in:
parent
5b404503fc
commit
0b2840f819
@ -110,15 +110,10 @@ class MultiSessionCommand extends Command
|
||||
public function compileModelStub(string $user)
|
||||
{
|
||||
$stub = file_get_contents(__DIR__ . '/stubs/telegram_session.stub');
|
||||
$namespace = str_replace(
|
||||
"/" . class_basename($user),
|
||||
"",
|
||||
$user
|
||||
);
|
||||
|
||||
return str_replace(
|
||||
['{{user}}', '{{package}}'],
|
||||
[Str::snake(class_basename($user)), $namespace],
|
||||
[Str::snake(class_basename($user)), 'App'],
|
||||
$stub
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user