laravel run command on a cron code example
Example: cron job for backup in laravel 5.4
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1