From 75b89d296d0d54319529bf19d793b2b7da6e5cb3 Mon Sep 17 00:00:00 2001 From: Timoffei Bubigo Date: Thu, 4 Feb 2021 10:21:06 +0300 Subject: [PATCH] Add force flag --- app/Console/Commands/HRCInstall.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/HRCInstall.php b/app/Console/Commands/HRCInstall.php index 28f5539..ef5051c 100644 --- a/app/Console/Commands/HRCInstall.php +++ b/app/Console/Commands/HRCInstall.php @@ -10,8 +10,12 @@ class HRCInstall extends HRCCommand implements HRCCommandInterface public function command($input, $output = null) { - Artisan::call('migrate'); - Artisan::call('db:seed'); + Artisan::call('migrate', [ + '--force' => true, + ]); + Artisan::call('db:seed', [ + '--force' => true, + ]); return [ 'status' => 'success'