S
S
Shane Matte2016-04-27 19:18:05
Laravel
Shane Matte, 2016-04-27 19:18:05

What is the laravel 5 error with the migrate:refresh command?

Mistake

[Symfony\Component\Debug\Exception\FatalThrowableError]
Fatal error: Class 'CreatePhotosTable' not found

Made migrate, it was created in a DB. Added a field to another users table and when migrate:refrash gives this error

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
D', 2016-04-27
@Denormalization

$ composer dumpautoload -o
Frequent problem. The command above solves it.

P
Paul Denisevich, 2016-04-28
@deniamnet

The migration class was not included in autoload, that is, Composer does not see it, respectively, Laravel too. The console command helps composer dump -oafter creating a new migration.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question