Rappasoft\Vault\Http\Controllers\UserController::update PHP Метод

update() публичный Метод

public update ( $id ) : mixed
$id
Результат mixed
    public function update($id)
    {
        try {
            $this->users->update($id, Input::except('assignees_roles', 'permission_user'), Input::only('assignees_roles'), Input::only('permission_user'));
        } catch (EntityNotValidException $e) {
            return Redirect::back()->withInput()->withFlashDanger($e->validationErrors());
        } catch (Exception $e) {
            return Redirect::back()->withInput()->withFlashDanger($e->getMessage());
        }
        return Redirect::route('access.users.index')->withFlashSuccess('The user was successfully updated.');
    }