/** * Show the form for editing the specified resource. * * @param int $id * * @return \Illuminate\View\View */ public function edit($id) { $user = $this->repository->find($id); return view('backend.users.edit', compact('user')); }
public function index() { $user = $this->user->find(Auth::id()); return view('auth.profile', compact('user')); }