I have this in my Kernal.php
$schedule->call(function () {
DB::table('news')->delete();
})->everyMinute();
when i do
php artisan schedule:run
it works fine. But when i use cpanel and write in cron job
php /home/allnewsnepal/public_html/artisan schedule:run >> /dev/null 2>&1
the code doesnt run automatically.I dont have access to shell of cpanel.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2qb1BZM
via IFTTT
Aucun commentaire:
Enregistrer un commentaire