gpt4 book ai didi

Laravel Tinker 从 5.3 升级到 5.4 后不工作

转载 作者:行者123 更新时间:2023-12-02 06:57:54 27 4
gpt4 key购买 nike

我最近将 Laravel 5.3 升级到 Laravel 5.4。我已经阅读了laravel提供的升级指南,一切看起来都不错。直到我尝试运行 Laravel Tinker,但它不起作用。我已经按照专门针对 Laravel Tinker 部分的升级指南进行操作。

Laravel Tinker

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

composer require laravel/tinker

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

这是我的 config/app.php :

'providers' => [

/*
* Laravel Framework Service Providers...
*/
Laravel\Tinker\TinkerServiceProvider::class,

但是,当我运行命令“php artisantinker”时,它说:

 [Symfony\Component\Console\Exception\CommandNotFoundException]
Command "tinker" is not defined.

有人以前经历过这种情况吗?

注意:其他 artisan 命令运行良好,我可以很好地看到我的网站。

最佳答案

Laravel Tinker

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

composer require laravel/tinker

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

关于Laravel Tinker 从 5.3 升级到 5.4 后不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41888059/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com