Laravel Tinker Not Working After Upgrading From 5.3 To 5.4

后端 未结 2 369
甜味超标
甜味超标 2021-01-17 11:18

I recently upgrade Laravel 5.3 to Laravel 5.4. I had read the upgrade guide provided by the laravel, and everything looks good. Until I try to run the Laravel Tinker and it\

2条回答
  •  别那么骄傲
    2021-01-17 11:58

    Edit your app/Console/Kernel.php, then modify the $commands property with this:

    protected $commands = [
        //
        \Laravel\Tinker\Console\TinkerCommand::class,
    ];
    

    then in console, make a

    composer dump-autoload
    

提交回复
热议问题