/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($name) { // Get additional information about the Pokemon $pokemon = Pokemon::where('name', $name)->firstOrFail(); // Show the contents of that pokemon on a view return view('pokedex.show', compact('pokemon')); }
/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($name) { // Get additional info about the pokemon $pokemon = Pokemon::where('name', $name)->firstOrFail(); return view('pokedex.show', compact('pokemon')); }