0
燦dailyAt()嵌套的方式使用,Laravel可以每天都嵌套嗎?
$schedule->command('foo')
->dailyAt('00:01')
->dailyAt('00:16');
或者它必須像,
$schedule->command('foo')
->dailyAt('00:01');
$schedule->command('foo')
->dailyAt('00:16');
但是分鐘呢?就像我需要在00:01和00:16運行它。我需要兩個cron條目嗎? –
在你的情況下,cron會是' - > cron('1,16 0 * * *');' –
謝謝! @MarkDavidson –