/** * Handle the event. * * @param PirepLineNotMatched $event * @return void */ public function handle(PirepLineNotMatched $event) { $upl = new UnparsedLine(); $upl->acars_id = $event->pirep->acars_id; $upl->pirep_id = $event->pirep->id; $upl->line = $event->lineData; $upl->save(); }
public function getDeleteUnparsedLine(UnparsedLine $line) { $line->delete(); return redirect('/admin/unparsed-lines'); }