Exemplo n.º 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $user = $this->user->with('settings')->whereId($id)->first();
     $settings = UserSetting::select('id', 'name', 'key', 'default')->orderBy('key', 'DESC')->get();
     return view('berrier::admin.users.edit')->with(compact('user'))->with(compact('settings'));
 }