public static function scheduleThumbCrunch($sThumbUrl, $iFeedItemId) { $oTask = new Task(); $oTask->processFrom = Carbon::now(); $oTask->job = "crunch-feed-image"; $oTask->name = $sThumbUrl; $oTask->detail = $iFeedItemId; $oTask->save(); }
public static function next() { /* return next available item or null */ $oTask = Task::where('processFrom', '<', Carbon::now())->first(); return $oTask; }