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