Skip to content

Commit

Permalink
Add scheduled commands to reset db with fresh data (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevalentin authored Feb 6, 2025
1 parent 94d4741 commit 59c77d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions routes/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
use Illuminate\Support\Facades\Schedule;

// Reset demo environment daily at midnight
Schedule::command('migrate:fresh')->dailyAt('00:00');
Schedule::command('db:seed')->dailyAt('00:00');
Schedule::command('migrate:fresh --seed --force')->dailyAt('00:00');

0 comments on commit 59c77d0

Please sign in to comment.