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