예제 #1
0
 public function run($id, $offset = 0)
 {
     $cronJob = CronJob::find($id);
     $callable = config('cron.' . $cronJob->key_011);
     // don't use helper config to dont't marked like error
     call_user_func($callable);
     // call to static method
     return redirect()->route($this->routeSuffix, $offset)->with(['msg' => 1, 'txtMsg' => trans('pulsar::pulsar.action_successful', ['name' => $cronJob->name_011])]);
 }