You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function show($id)
{
$movie = Http::withToken(config('services.tmdb.token'))
->get('https://api.themoviedb.org/3/movie/'.$id.'?append_to_response=credits,videos,images,reviews')
->json();
if ($movie['imdb_id'] != "") {
$imdb = Http::get('http://www.omdbapi.com/?i='.$movie['imdb_id'].'&apikey='.$apikey)
->Json();
}
else {
$imdb = $movie;
}
//dump($movie);
$viewModel = new MovieViewModel(
$movie,
$imdb,
);
return view('movie.show', $viewModel);
}
Here I have added the 'review' and 'author' field but not getting it. I also changed 'backdrops' field to take(3) from take(9) but no change. Here is what I am getting : https://ibb.co/w69BRQS
This discussion was converted from issue #31 on March 27, 2021 18:22.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My new added code also edited code are not updating in my webpage.
Here is my view model function :
controller :
Here I have added the 'review' and 'author' field but not getting it. I also changed 'backdrops' field to
take(3)
fromtake(9)
but no change. Here is what I am getting :https://ibb.co/w69BRQS
Beta Was this translation helpful? Give feedback.
All reactions