TIP 39 / 73

Schedule Regular Shell Commands.

We can schedule regular shell commands within Laravel scheduled command

code
// app/Console/Kernel.php

class Kernel extends ConsoleKernel
{
    protected function schedule(Schedule $schedule)
    {
        $schedule->exec('node /home/forge/script.js')->daily();
    }
}