Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit 0a81a71

Browse files
committed
reset the demo every hour
1 parent 8fa270f commit 0a81a71

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/Console/Commands/ResetDemoApp.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ public function handle()
3232
{
3333
$service = app(AppInstallationService::class);
3434
$this->info('cleaning up');
35-
$this->call('migrate:refresh');
35+
$this->call('migrate:refresh', [
36+
'force'
37+
]);
38+
$this->call('passport:install');
3639
$this->info('Installing the app');
3740
$service->installApp([
3841
'name' => 'Api Demo Admin',

app/Console/Kernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class Kernel extends ConsoleKernel
2828
*/
2929
protected function schedule(Schedule $schedule)
3030
{
31+
$schedule->call('demo:reset')->hourly();
3132
}
3233

3334
/**

0 commit comments

Comments
 (0)