/**
  * Generate task details for pending outages
  * @method generateTaskDetails
  * @return [type]              [description]
  */
 public function generateTaskDetails()
 {
     Outage::generateAllTaskDetails();
     return redirect('/oit/outageTasks');
 }
Ejemplo n.º 2
0
 /**
  * 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();
     });
 }