"Class 'CreateTodosTable' not found"의 두 판 사이의 차이

(새 문서: ;Class 'CreateTodosTable' not found ;Symfony\Component\Debug\Exception\FatalErrorException ==문제상황== <source lang='console'> root@zetawiki:/var/www/laravel# php artisan migrat...)
 
잔글 (봇: 자동으로 텍스트 교체 (-== 참고 자료 == +==참고==))
34번째 줄: 34번째 줄:
* [[php artisan migrate]]
* [[php artisan migrate]]


==참고 자료==
==참고==
* https://laracasts.com/discuss/channels/general-discussion/laravel-5-database-migrate-help?page=1
* https://laracasts.com/discuss/channels/general-discussion/laravel-5-database-migrate-help?page=1


[[분류: Laravel]]
[[분류: Laravel]]

2017년 6월 27일 (화) 02:20 판

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 }}