Example #1
0
 public function delete($id)
 {
     \App\Media::where('id', $id)->delete();
     \App\EventMedia::where('mediaID', $id)->delete();
     \App\Series::leftJoin('media', 'series.seriesAbbreviation', '=', 'media.series')->where('media.series', NULL)->delete();
     return redirect('/');
 }