Artisan – A Weblog of Priyank Maniar https://priyank.rocks Articles on web development & mobile app development Mon, 28 Feb 2022 18:11:33 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 The command “migrate:fresh –seed” does not exist. https://priyank.rocks/the-command-migratefresh-seed-does-not-exist/ Mon, 28 Feb 2022 18:11:31 +0000 https://priyank.rocks/?p=8932 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]);
]]>