protected function buildResourceSchema($name, $attributes)
    {
        $schema = [
            'name'    => '',
            'uses'    => '',
            'routes'  => [],
            'visible' => true,
        ];

        if (! is_array($attributes)) {
            $uses       = $attributes;
            $attributes = [
                'name' => Str::title($name),
                'uses' => $uses,
            ];
        }

        $attributes['id'] = $name;

        return array_merge($schema, $attributes);
    }