Database gets stuck in migration with seeder on production with --force in Laravel. Same effect I have on Laravel Homestead and EC2 AWS running Amazone linux. No messages in
I had same issue running php artisan migrate
and nothing happens, stays stuck.
--force
or verbose wouldn't help.
The problem I had is the DB_PORT
in .env was not set correctly.
Try including the -vvv
flag in your migration command, this will increase the verbosity of any messages, which might uncover the problem.
--verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
$ php artisan migrate --force
As for the problem itself, try including the --force
flag in your db:seed
call, as you have included it in the migration.
Artisan::call('db:seed', ['--class' => 'ProductsSeeder', '--force' => true,]);