Laravel5 から cronの代わりにコマンド実行の計画をソースコードで指定できるようになりました。 スケジューリング app/Console/Commands/Kernel.php にコマンド実行計画を記述します。 <?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; class Kernel extends ConsoleKernel { // ... protected function schedule(Schedule $schedule) { $schedule ->command('auth:clear-reminders') // artisan command
![タスクスケジューラ](https://cdn-ak-scissors.b.st-hatena.com/image/square/8d71ff5111e05619a10d29bb40d7aebaa75c8fbc/height=288;version=1;width=512/https%3A%2F%2Fs0.wp.com%2Fi%2Fblank.jpg)