/**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     //
     $director = new director();
     $director->name = Request::get('name');
     //$director=Request::all();
     //return $director;
     $director->save();
     return redirect('director');
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     //
     $directors = director::all();
     $cinemas = cinema::all();
     $movies = movie::all();
     return view('movie.index', compact('cinemas', 'directors', 'movies'));
 }