src/Traits/UsesProfiles.php
public function hasAllProfiles($profiles) : bool
    {
        $profiles = (array) $profiles;

        return count(array_intersect($this->profiles->pluck('code')->toArray(), $profiles)) == count($profiles);
    }
public function hasAllProfiles($profiles) : bool
    {
        $profiles = (array) $profiles;

        return count(array_intersect($this->profiles->pluck('code')->toArray(), $profiles)) == count($profiles);
    }
public function hasAllProfiles ( $ profiles ) : bool { $ profiles = ( array ) $ profiles ; return count ( array_intersect ( $ this -> profiles -> pluck ( 'code' ) -> toArray ( ) , $ profiles ) ) == count ( $ profiles ) ; }
Matches ALL user profiles.

@param array $profiles The user profile string array.

@return bool True in case it finds ALL of them.
Matches ALL user profiles .