You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 line
708B

  1. <?php
  2. namespace App\Console\Schedules;
  3. use App\Console\Commands\PoolTransfer\MoveToPool;
  4. use App\Console\Commands\PoolTransfer\AttachToPaymentPlan;
  5. use App\Console\Commands\PoolTransfer\YuchoResolveCustomer;
  6. use Illuminate\Console\Scheduling\Schedule;
  7. use Illuminate\Support\Facades\Artisan;
  8. class PoolTransfer extends BaseSchedule
  9. {
  10. static public function register(Schedule $schedule)
  11. {
  12. $schedule->command(YuchoResolveCustomer::class)
  13. ->twiceDaily(10, 16)
  14. ->description("プール金異動")
  15. ->onSuccess(function () {
  16. Artisan::call(MoveToPool::class);
  17. Artisan::call(AttachToPaymentPlan::class);
  18. });
  19. }
  20. }