Skip to content

Commit

Permalink
fix the cron
Browse files Browse the repository at this point in the history
  • Loading branch information
moeen-basra committed Feb 28, 2021
1 parent 75a8c71 commit 5cc48f1
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 140 deletions.
14 changes: 2 additions & 12 deletions app/Console/Commands/RefreshDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,12 @@ class RefreshDatabase extends Command
*/
protected $description = 'Refresh database to remove user changes from production server';

/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}

/**
* Execute the console command.
*
* @return mixed
* @return void
*/
public function handle()
public function handle(): void
{
$this->call('migrate:refresh');
$this->call('db:seed');
Expand Down
1 change: 1 addition & 0 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ protected function schedule(Schedule $schedule)
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}
Loading

0 comments on commit 5cc48f1

Please sign in to comment.