使用Laravel的Cron工作?

Need a line of code using Laravel framework that will:

  • Add a cron job
  • List the current cron jobs
  • Modify a cron job

The business scenario I got is making recurring payments for customers using my charge.php file, but I wanna manage/delete/add subscriptions.

Straight-forward codes are welcomed.

cron jobs in laravel known by commands name,

creating cron job : php artisan make:console HappyBirthday --command=sms:birthday this will create a php file under app/Commands/ directory

for see the list : php artisan list

for more information check the link : https://www.sitepoint.com/managing-cronjobs-with-laravel/