/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { $crop = Crop::find($id); $cropType = CropType::where('id', $id)->get(); return view('crop.cropProfile', ['crop' => $crop, 'cropType' => $cropType]); }