Skip to content

Commit

Permalink
Merge pull request #588 from nasirkhan/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
nasirkhan authored May 15, 2024
2 parents ee2e346 + 194051b commit b4c8ea1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/Console/Commands/ResetDemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;

class ResetDemo extends Command
{
Expand Down Expand Up @@ -40,12 +39,12 @@ public function handle()
public function resetDemoData()
{
$this->info('Reset Database and migrate fresh');
Artisan::call('migrate:fresh');
$this->callSilently('migrate:fresh', ['--no-interaction' => true]);

$this->info('Reset Database seeds');
Artisan::call('db:seed');
$this->callSilently('db:seed', ['--no-interaction' => true]);

$this->info('Insert Demo Data again');
Artisan::call('laravel-starter:insert-demo-data');
$this->callSilently('laravel-starter:insert-demo-data', ['--no-interaction' => true]);
}
}

0 comments on commit b4c8ea1

Please sign in to comment.