firstOrFail(); } elseif ($platform == 'Sega_Genesis_MegaDrive') { $platform = Platform::where('name', 'Sega Genesis/MegaDrive')->firstOrFail(); } elseif ($platform == 'Meta_Oculus_Quest') { $platform = Platform::where('name', 'Meta/Oculus Quest')->firstOrFail(); } elseif ($platform == 'Meta_Oculus_Quest_2') { $platform = Platform::where('name', 'Meta/Oculus Quest 2')->firstOrFail(); } else { $platform = Platform::where('name', str_replace('_', ' ', $platform))->firstOrFail(); } // Direct the users to a page showing all the games for the specified platform. return view('pages.platforms.show', compact('platform')); } /** * Show the form for editing the specified resource. * * @param \App\Models\Platform $platform * @return \Illuminate\Http\Response */ public function edit(Platform $platform) { // } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param \App\Models\Platform $platform * @return \Illuminate\Http\Response */ public function update(Request $request, Platform $platform) { // } /** * Remove the specified resource from storage. * * @param \App\Models\Platform $platform * @return \Illuminate\Http\Response */ public function destroy(Platform $platform) { // } }