We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cc7d56 commit 0498198Copy full SHA for 0498198
app/Console/Kernel.php
@@ -24,7 +24,10 @@ class Kernel extends ConsoleKernel
24
*/
25
protected function schedule(Schedule $schedule)
26
{
27
- // $schedule->command('inspire')->hourly();
+ $min = config('app.scheduled');
28
+ if(env('IS_DEMO')) {
29
+ $schedule->command('migrate:fresh --seed')->cron('*/'. $min .' * * * *');
30
+ }
31
}
32
33
/**
config/app.php
@@ -2,6 +2,8 @@
2
3
return [
4
5
+ 'scheduled' => env('SCHEDULED_TIME', 15),
6
+
7
/*
8
|--------------------------------------------------------------------------
9
| Application Name
0 commit comments