Example #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     //
     if (!Entrust::can('user-update')) {
         return redirect('');
     }
     $this->data['sub_title'] = 'Edit User';
     $this->data['user'] = User::find($id);
     $this->data['roles'] = Role::lists('name', 'id');
     return view('backend.user.edit', $this->data);
 }