From 0b2840f8190036f3f98ae107ed39528f31ff4db1 Mon Sep 17 00:00:00 2001 From: Setiawan Hu Date: Thu, 13 Aug 2020 23:11:53 +0700 Subject: [PATCH] Fixing invalid namespace for TelegramSession model --- src/Commands/MultiSessionCommand.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Commands/MultiSessionCommand.php b/src/Commands/MultiSessionCommand.php index d9a498c..fab8cc7 100644 --- a/src/Commands/MultiSessionCommand.php +++ b/src/Commands/MultiSessionCommand.php @@ -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 ); }