File tree Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -168,8 +168,6 @@ private function registerBladeComponents(): void
168
168
private function registerCommands (): void
169
169
{
170
170
if ($ this ->app ->runningInConsole ()) {
171
- $ this ->loadRoutesFrom (__DIR__ .'/../routes/console.php ' );
172
-
173
171
$ this ->commands ([
174
172
Commands \MakeUserCommand::class,
175
173
Commands \SendBeaconCommand::class,
@@ -196,8 +194,14 @@ private function registerSchedules(): void
196
194
197
195
$ this ->app ->booted (function () {
198
196
$ schedule = $ this ->app ->make (\Illuminate \Console \Scheduling \Schedule::class);
197
+ $ demoMode = fn () => Cachet::demoMode ();
199
198
200
199
$ schedule ->command ('cachet:beacon ' )->daily ();
200
+
201
+ $ schedule ->command ('db:seed ' , [
202
+ '--class ' => \Cachet \Database \Seeders \DatabaseSeeder::class,
203
+ '--force ' => true ,
204
+ ])->everyThirtyMinutes ()->when ($ demoMode );
201
205
});
202
206
}
203
207
You can’t perform that action at this time.
0 commit comments