Esempio n. 1
0
 public function starrated()
 {
     return Movie::where('rating', '>', '3')->get();
 }
 public function destroy($id)
 {
     $movies = Movie::where('film_id', '=', $id)->get()->first();
     $movies->delete();
     return redirect('/admin')->with('message', 'delete');
 }