/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $user = \LaravelProject\Genre::Find($id);
     $user->delete();
 }
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $genres = \LaravelProject\Genre::Lists('genre', 'id');
     return view('movies.create', compact('genres'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $genres = \LaravelProject\Genre::All()->sortBy('genre');
     return view('index', compact('genres'));
 }