웹마짱구의 블로그

원문 : tutsforweb.com/how-to-set-up-task-scheduling-cron-job-in-laravel/

 

How to set up Task Scheduling with Cron job in Laravel - TutsForWeb

Implementing Cron Job in Laravel. Set up and demonstrate the use of Task Scheduler using Cron Job in Laravel. Version control Cron jobs and Artisan command.

tutsforweb.com

 

커맨드 생성

php artisan make : command WordOfTheDay

 

스케쥴링 등록

app / Console / Kernel.php

 

crontab 등록 
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

Comment +0