We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4de88f2 commit 6c3ab43Copy full SHA for 6c3ab43
src/Console/ListenCommand.php
@@ -3,7 +3,6 @@
3
namespace Nutgram\Laravel\Console;
4
5
use Illuminate\Console\Command;
6
-use Illuminate\Support\Facades\App;
7
use SergiX44\Nutgram\Nutgram;
8
use SergiX44\Nutgram\RunningMode\SingleUpdate;
9
@@ -17,8 +16,8 @@ public function handle(): void
17
16
{
18
$this->info('Listening...');
19
while (true) {
20
- $app = App::configure(base_path())->create();
21
- $bot = $app->make(Nutgram::class);
+ app()->forgetInstance(Nutgram::class);
+ $bot = app(Nutgram::class);
22
$bot->setRunningMode(SingleUpdate::class);
23
$bot->run();
24
}
0 commit comments