select(['id', 'uuid', 'queue', 'exception', 'failed_at'])->selectRaw('SUBSTRING(payload, 1, 150) AS payload')->get(); $jobs = DB::table('jobs')->select(['id', 'queue', 'available_at'])->selectRaw('SUBSTRING(payload, 1, 150) AS payload')->get(); return view('system.jobs.index', [ 'failed_jobs' => $failed_jobs, 'jobs' => $jobs, 'job_actions' => $job_actions, ]); } public function clear() { DB::table('failed_jobs')->delete(); return redirect()->route('system.jobs.index')->with('success', __('boilerplate::ui.jobs-cleared')); } public function call($job) { $class = '\\App\\Jobs\\' . $job; dispatch(new $class()); return redirect()->route('system.jobs.index')->with('success', __('Job přidán do fronty')); } }