public function canAtLeast(array $permission = [])
    {
        $permissions = $this->getPermissions();

        $intersection      = array_intersect($permissions, $permission);
        $intersectionCount = count($intersection);

        return ($intersectionCount > 0) ? true : false;
    }
public function canAtLeast(array $permission = [])
    {
        $permissions = $this->getPermissions();

        $intersection      = array_intersect($permissions, $permission);
        $intersectionCount = count($intersection);

        return ($intersectionCount > 0) ? true : false;
    }
public function canAtLeast ( array $ permission = [ ] ) { $ permissions = $ this -> getPermissions ( ) ; $ intersection = array_intersect ( $ permissions , $ permission ) ; $ intersectionCount = count ( $ intersection ) ; return ( $ intersectionCount > 0 ) ? true : false ; }
Check if the role has at least one of the given permissions.

@param  array $permission
@return bool
Check if the role has at least one of the given permissions .