src/Conductors/RemovesRoles.php
public function from($authority)
    {
        if (! ($roleIds = $this->getRoleIds())) {
            return;
        }

        $authorities = is_array($authority) ? $authority : [$authority];

        foreach (Helpers::mapAuthorityByClass($authorities) as $class => $keys) {
            $this->retractRoles($roleIds, $class, $keys);
        }
    }
public function from($authority)
    {
        if (! ($roleIds = $this->getRoleIds())) {
            return;
        }

        $authorities = is_array($authority) ? $authority : [$authority];

        foreach (Helpers::mapAuthorityByClass($authorities) as $class => $keys) {
            $this->retractRoles($roleIds, $class, $keys);
        }
    }
public function from ( $ authority ) { if ( ! ( $ roleIds = $ this -> getRoleIds ( ) ) ) { return ; } $ authorities = is_array ( $ authority ) ? $ authority : [ $ authority ] ; foreach ( Helpers :: mapAuthorityByClass ( $ authorities ) as $ class => $ keys ) { $ this -> retractRoles ( $ roleIds , $ class , $ keys ) ; } }
Remove the role from the given authority.

@param  \Illuminate\Database\Eloquent\Model|array|int  $authority
@return void
Remove the role from the given authority .