laravel

Error Exception in php artisan make migration

Recently, I came across an issue of Error Exception in php artisan make migration while coding in laravel to create a table via migration as shown in the below screenshot.

Error Exception in php artisan make migration
Error Exception in php artisan make migration

The solution of the issue message reading Error Exception in php artisan make migration is to run a Composer dump autoload command in command prompt as shown in the screenshot below.

Error Exception in php artisan make migration solution
Error Exception in php artisan make migration solution

Actually, Composer can’t see the migration files being created, so we need to run the dump autoload command which won’t download anything new, but fetches all of the classes it needs to include again resulting the migration functional after you run dump command as shown above.

Leave a Reply

Your email address will not be published. Required fields are marked *