php artisan 出错,Laravel 5.2 php artisan migrate:回滚错误
我使用Laravel 5.2并通過(guò)運(yùn)行創(chuàng)建了數(shù)據(jù)庫(kù)表
php artisan make:migration create_categories_table --create=categories
和
php artisan make:migration create_posts_table --create=posts
然后我運(yùn)行php artisan migrate,并在數(shù)據(jù)庫(kù)中創(chuàng)建表.但是在我對(duì)遷移文件“create_posts_table.php”進(jìn)行了一些更改并運(yùn)行之后
php artisan migrate:rollback
我收到一個(gè)錯(cuò)誤:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class ‘CreatePostsTable’ not found
PHP Fatal error: Class ‘CreatePostsTable’ not found in E:\programfiles\xampp\htdocs\deneme\vendor\laravel\framework\src\Illuminate\Database\Migrations\Migrator.php on line 336
我的create_posts_table.php是
我嘗試過(guò)composer update,composer dump-autoload但是還沒(méi)有解決問(wèn)題.
總結(jié)
以上是生活随笔為你收集整理的php artisan 出错,Laravel 5.2 php artisan migrate:回滚错误的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: matlab 双向链表,双向链表基本操作
- 下一篇: php识别号码格式豹子,[转载]php新