/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { if (\Request::ajax()) { return view('ajax.aircraftShow', ['aircraft' => Aircraft::find($id)]); } else { Log::error('AircraftController@show no ajax request'); abort(403, 'Unauthorized action.'); } }