Generar autodump laravel
$ composer dump-autoload
Snippets
$ composer dump-autoload
So to not copy all the content of the answer, you can visit the website:
https://stackoverflow.com/questions/33973967/why-do-i-have-to-run-composer-dump-autoload-command-to-make-migrations-work-in