I am creating a custom command which truncate a table every Thirty Minute in console kernel.(for development purposes)
I want to run another command right after previous one's.
P.S: i have if statement which prevent run these commands in production server.
$schedule->command('db:seed')->after(function() use ($schedule) : void {
$schedule->command('my-command:remove-users-from-tables')
->everyThirtyMinutes()
->environments(['demo', 'local']);
});
i expect run seeder right after "my-command" run successfully every Thirty Minute.
but in this way just db:seed runs.
from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2KqGVXl
via IFTTT
Aucun commentaire:
Enregistrer un commentaire