Пример #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     //
     // $movie = Request::all();
     // movie::create($movie);
     $movie = new movie();
     $movie->title = Request::get('name');
     $movie->id_director = Request::get('director');
     $movie->id_cinemas = Request::get('cinema');
     $movie->save();
     return redirect('movie');
     //return $movie;
 }
Пример #2
0
 public function movie_details($id)
 {
     $info = movie::get_info($id);
     $credits = movie::get_credits($id);
     $comments = comments::get_comments($id);
     return view('pages.info', compact(array('info', 'comments', 'credits')));
 }