Пример #1
0
 /**
  * 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'));
 }
Пример #2
0
 public function index()
 {
     $user = $this->user->find(Auth::id());
     return view('auth.profile', compact('user'));
 }