【发布时间】:2015-09-06 22:53:42
【问题描述】:
在我的应用程序中,当我运行php artisan migrate:make create_location_user_table,然后删除生成的文件(如果我删除在vendor/composer/autoload_classmap.php 中创建的行无关紧要,php artisan migrate:refresh 命令会抛出错误:
include(<path_to_project>/database/migrations/2015_06_21_105357_create_location_user_table.php): failed to open stream: No such file or directory
运行命令以消除错误的自动加载条目后,我得到一个异常。我试过的命令是:composer update、composer dump-autoload、php artisan clear-compiled、php artisan optimize。
PHP Fatal error: Class 'CreateLocationUserTable' not found in <path_to_project>\vendor\laravel\framework\src\Illuminate\Database\Migrations\Migrator.php on line 323
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'CreateLocationUserTable' not found
【问题讨论】:
标签: php laravel laravel-5 composer-php autoload