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

edit() public method

* Edit the specified user
public edit ( $id )
    public function edit($id)
    {
        try {
            $role = $this->roles->findOrThrowException($id, true);
            return view('vault::roles.edit')->withRole($role)->withRolePermissions($role->permissions->lists('id')->all())->withPermissions($this->permissions->getPermissionsNotAssociatedWithUser());
        } catch (Exception $e) {
            return Redirect::route('access.roles.index')->withInput()->withFlashDanger($e->getMessage());
        }
    }