且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从5.3升级到5.4后,Laravel Tinker无法正常工作

更新时间:2023-02-22 22:42:47

Laravel Tinker

为了继续使用tinker Artisan命令,您还应该安装laravel/tinker软件包:

In order to continue using the tinker Artisan command, you should also install the laravel/tinker package:

composer require laravel/tinker

一旦安装了软件包,您应该将Laravel\Tinker\TinkerServiceProvider::class添加到config/app.php配置文件中的providers数组中.

Once the package has been installed, you should add Laravel\Tinker\TinkerServiceProvider::class to the providers array in your config/app.php configuration file.

来源: https://laravel.com/docs/5.4/upgrade