Silber\Bouncer\Bouncer::retract PHP Метод

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

Start a chain, to retract the given role from a model.
public retract ( Role | string $role ) : RemovesRole
$role Silber\Bouncer\Database\Role | string
Результат Silber\Bouncer\Conductors\RemovesRole
    public function retract($role)
    {
        return new RemovesRole($role);
    }

Usage Example

Пример #1
0
 /**
  * Start a chain, to retract the given role from a user.
  *
  * @param \Silber\Bouncer\Database\Role|string $role
  * @return \Silber\Bouncer\Conductors\RemovesRole 
  * @static 
  */
 public static function retract($role)
 {
     return \Silber\Bouncer\Bouncer::retract($role);
 }