public function show($id)
 {
     //$id = Tmdb::getMoviesApi()->getRandomMovie(['vote_count.gte' => 20])['id'];
     $movie = Tmdb::getMoviesApi()->getMovie($id, ['language' => 'en']);
     $backdrops = Tmdb::getMoviesApi()->getImages($movie['id'])['backdrops'];
     $video = Tmdb::getMoviesApi()->getVideos($movie['id'])['results'][0]['key'];
     return view('movie', compact('movie', 'backdrops', 'video'));
 }
Exemplo n.º 2
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     return Tmdb::getMoviesApi()->getMovie($id);
 }