The command-line tool in production.
WHERE TO RUN IT
Terminal access in cPanel.
WHAT TO SPECIFY
The full path to the correct PHP version.
WHY
The terminal's default PHP may differ from the version serving your site.
WHAT YOU WILL RUN
Migrations Cache clearing and rebuilding The storage link The scheduler, via cron Queue processing
WHAT TO RUN AFTER EVERY DEPLOYMENT
Migrations, if any Configuration and route cache rebuild View cache clear
WHAT TO BE CAREFUL WITH
Commands that modify data Migrations, without a backup
WHAT TO DO IF TERMINAL ACCESS IS UNAVAILABLE
Run commands through a cron entry, once, then remove it.
WHAT NOT TO DO
Expose a route that runs arbitrary commands.
WHY
That is a complete compromise waiting to happen.
WHAT TO VERIFY
That a command ran, by its output or its effect.
WHAT TO LOG
Deployment commands and their results.