src/Group/Group.php
public function hasPermission($permission)
    {
        if ($this->id == self::ADMINISTRATOR_ID) {
            return true;
        }

        return $this->permissions->contains('permission', $permission);
    }
public function hasPermission($permission)
    {
        if ($this->id == self::ADMINISTRATOR_ID) {
            return true;
        }

        return $this->permissions->contains('permission', $permission);
    }
public function hasPermission ( $ permission ) { if ( $ this -> id == self :: ADMINISTRATOR_ID ) { return true ; } return $ this -> permissions -> contains ( 'permission' , $ permission ) ; }
Check whether the group has a certain permission.

@param string $permission
@return bool
Check whether the group has a certain permission .