Exemplo n.º 1
0
 public function getRescoreAll()
 {
     $pireps = Pirep::all();
     foreach ($pireps as $pirep) {
         Event::fire(new PirepWasProcessed($pirep, $pirep->booking->pilot, true));
     }
     return redirect('/staff/pireps')->with('flash', 'All PIREPs have been submitted for rescoring');
 }