Rappasoft\Vault\Http\Controllers\RoleController::update PHP Method

update() public method

* Update the specified user
public update ( $id )
    public function update($id)
    {
        try {
            $this->roles->update($id, Input::except('role_permissions'), Input::only('role_permissions'));
        } catch (Exception $e) {
            return Redirect::back()->withInput()->withFlashDanger($e->getMessage());
        }
        return Redirect::route('access.roles.index')->withFlashSuccess('The role was successfully updated.');
    }