Esempio n. 1
0
 /**
  * Update the specified resource in storage.
  *
  * @param StoreRequest|Request $request
  * @param  int $id
  * @return Response
  */
 public function update(StoreRequest $request, $id)
 {
     $user = $this->user->updateWithRoles($id, $request->only('name', 'email', 'status'), $request->get('roles', []));
     if ($user) {
         flash()->success(trans('flash.user.updated', ['name' => $user['name']]));
     }
     return redirect()->back();
 }