This commit is contained in:
LAPTOP-DGCU80CH\user1
2020-11-08 15:59:21 +08:00
parent ba7e18eee1
commit 4f463412b0
11 changed files with 325 additions and 45 deletions
+7 -1
View File
@@ -5,6 +5,10 @@ namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Laravel\Lumen\Console\Kernel as ConsoleKernel;
use App\Cawangan;
use App\Gadai;
use Carbon\Carbon;
class Kernel extends ConsoleKernel
{
/**
@@ -13,7 +17,7 @@ class Kernel extends ConsoleKernel
* @var array
*/
protected $commands = [
//
Commands\DailyGadai::class,
];
/**
@@ -25,5 +29,7 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule)
{
//
$schedule->command('gadai:daily')->daily()->at('00:00')->timezone('Asia/Kuala_Lumpur');
}
}