Class 'CreateTodosTable' not found

Jmnote (토론 | 기여)님의 2016년 10월 16일 (일) 21:45 판 (새 문서: ;Class 'CreateTodosTable' not found ;Symfony\Component\Debug\Exception\FatalErrorException ==문제상황== <source lang='console'> root@zetawiki:/var/www/laravel# php artisan migrat...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
Class 'CreateTodosTable' not found
Symfony\Component\Debug\Exception\FatalErrorException

1 문제상황

root@zetawiki:/var/www/laravel# php artisan migrate:refresh --seed
PHP Fatal error:  Class 'CreateTodosTable' not found in /var/www/laravel/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php on line 335

                                                           
  [Symfony\Component\Debug\Exception\FatalErrorException]  
  Class 'CreateTodosTable' not found

2 해결방법

composer dump-autoload -o
root@zetawiki:/var/www/laravel# composer dump-autoload -o
Generating optimized autoload files
root@zetawiki:/var/www/laravel# php artisan migrate:refresh --seed
Rolled back: 2016_09_17_174100_create_todos_table
Rolled back: 2014_10_12_100000_create_password_resets_table
Rolled back: 2014_10_11_100000_create_users_table
Migrated: 2014_10_11_100000_create_users_table
Migrated: 2014_10_12_100000_create_password_resets_table
Migrated: 2016_09_17_174100_create_todos_table
Migrated: 2016_10_12_222030_create_boards_table
Seeded: UsersTableSeeder

3 같이 보기

4 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}