php artisan 出错,Laravel 5.2 php artisan migrate:回滚错误
我使用Laravel 5.2并通過運行創建了數據庫表
php artisan make:migration create_categories_table --create=categories
和
php artisan make:migration create_posts_table --create=posts
然后我運行php artisan migrate,并在數據庫中創建表.但是在我對遷移文件“create_posts_table.php”進行了一些更改并運行之后
php artisan migrate:rollback
我收到一個錯誤:
[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是
我嘗試過composer update,composer dump-autoload但是還沒有解決問題.
總結
以上是生活随笔為你收集整理的php artisan 出错,Laravel 5.2 php artisan migrate:回滚错误的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: matlab 双向链表,双向链表基本操作
- 下一篇: php识别号码格式豹子,[转载]php新