/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // Get all Pokemon from the database $allPokemon = Pokemon::all(); return view('pokedex.index', compact('allPokemon')); }