public static function allPermissionsFor($resource)
    {
        $result = [];
        foreach (static::$permissions as $permission) {
            $result[] = sprintf('%s %s', $permission, str_plural($resource));
        }

        return $result;
    }
public static function allPermissionsFor($resource)
    {
        $result = [];
        foreach (static::$permissions as $permission) {
            $result[] = sprintf('%s %s', $permission, str_plural($resource));
        }

        return $result;
    }
public static function allPermissionsFor ( $ resource ) { $ result = [ ] ; foreach ( static :: $ permissions as $ permission ) { $ result [ ] = sprintf ( '%s %s' , $ permission , str_plural ( $ resource ) ) ; } return $ result ; }
Returns all the standard permissions for a resource

@param $resource

@return array
Returns all the standard permissions for a resource