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