command('twilight:process-uploads') ->everyMinute() ->when(function () { return (Upload::where([ 'is_completed' => 0, 'is_processing' => 0, 'is_ready' => 1 ])->count() > 0); }); } /** * Register the Closure based commands for the application. * * @return void */ protected function commands() { require base_path('routes/console.php'); } }