/** * Generate task details for pending outages * @method generateTaskDetails * @return [type] [description] */ public function generateTaskDetails() { Outage::generateAllTaskDetails(); return redirect('/oit/outageTasks'); }
/** * Generate all the task details for pending outages. * @method generateAllTaskDetails * @return [type] [description] */ public static function generateAllTaskDetails() { Outage::pending()->get()->each(function ($outage) { $outage->generateTaskDetails(); }); }