I have a laravel project and i create a command to do something. My goal is run the command every minute, So I add the command to the schedule. If in the local server I run
php artisan schedule:run It´s works but just one time.
So I upload my project for server and create a Cron Job in the CPanel but I have the error
PHP Fatal error: Class 'Illuminate\Console\Command' not found
Command in the Cron Job
/usr/bin/php /path-to-project/app/Console/Commands/Notification.php
I dont understand why i can run the command in the local server but i can´t run in the online server.
Can anyone help me? thx
composer installon your server? Or asked differently, is there avendordirectory on the server? - Namoshek