【问题标题】:Class App\Console\Commands\ExampleCommand does not exist when running php artisan tinker运行 php artisan tinker 时类 App\Console\Commands\ExampleCommand 不存在
【发布时间】:2021-02-27 15:03:24
【问题描述】:

每当我尝试运行 php artisan tinker 时,我都会得到:
ReflectionException : Class App\Console\Commands\ExampleCommand does not exist

虽然该文件确实不存在,但它必须要运行 tinker 吗?

【问题讨论】:

标签: laravel tinker


【解决方案1】:

必须注释掉 tinker.php 文件中的 ExampleCommand 行(第 17 行)。感谢@bhuncho 指出命令白名单文档,根据它找到的!

【讨论】:

    猜你喜欢
    • 2020-03-23
    • 2019-10-24
    • 2018-03-29
    • 2016-02-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-26
    • 2019-05-15
    相关资源
    最近更新 更多