Skip to main content
Artisan

The command “migrate:fresh –seed” does not exist.

By February 28, 2022No Comments

The command was not running on the production server. The fix was easy but in two steps:

Introduce force since we are running into production

\Artisan::call('migrate:fresh', ['--force' => true]);

Split the command into two. So.

\Artisan::call('migrate:fresh', ['--force' => true]);
\Artisan::call('db:seed', ['--force' => true]);