|
|
|
@@ -0,0 +1,20 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
namespace App\Console\Schedules; |
|
|
|
|
|
|
|
use App\Console\Commands\SummaryUse as Command; |
|
|
|
use Illuminate\Console\Scheduling\Schedule; |
|
|
|
|
|
|
|
class SummaryUse extends BaseSchedule |
|
|
|
{ |
|
|
|
|
|
|
|
static public function register(Schedule $schedule) |
|
|
|
{ |
|
|
|
$schedule->command(Command::class, ['--current']) |
|
|
|
->everyTenMinutes() |
|
|
|
->description("利用集計(当月)"); |
|
|
|
$schedule->command(Command::class) |
|
|
|
->monthlyOn(5) |
|
|
|
->description("利用集計(前月)"); |
|
|
|
} |
|
|
|
} |