public function visible(array $roles = []) : bool
    {
        if (empty($roles)) {
            return true;
        }

        $roles = array_column($roles, 'slug');

        return $this->inRoles($roles) || $this->isAdministrator();
    }
public function visible(array $roles = []) : bool
    {
        if (empty($roles)) {
            return true;
        }

        $roles = array_column($roles, 'slug');

        return $this->inRoles($roles) || $this->isAdministrator();
    }
public function visible ( array $ roles = [ ] ) : bool { if ( empty ( $ roles ) ) { return true ; } $ roles = array_column ( $ roles , 'slug' ) ; return $ this -> inRoles ( $ roles ) || $ this -> isAdministrator ( ) ; }
If visible for roles.

@param $roles

@return bool
If visible for roles .