/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $region_type = RegionType::whereid($id)->firstOrFail(); $this->authorize('update', $region_type); return view('region_types.edit', compact('region_type')); }