How to Run a Laravel Scheduled Job on Laravel Forge
Beda Arta
LaravelLaravel Forge
The new UI of Laravel Forge is quite different from the previous version. You might find it a bit confusing, like I did, especially when trying to run a scheduled job. If I’m not mistaken, the previous version of Laravel Forge didn’t require the full path to run a scheduled job, but now you have to enter the full path instead. Here are the steps:
Choose a Site
Select one of your sites from your server.
Open the Scheduler Page
Once site is selected, navigate to Processes > Scheduler.
Add a Schedule
Click Add scheduled job and fill in the fields. Most fields are straightforward, except for the Command field. Below is an example of what to enter in the Command field:
php8.4 /home/forge/example.com/artisan schedule:run
Save
Once you've filled in all the fields, click Create scheduled job