src/Router.php
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);
    }
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);
    }
Build resource schema.

@param  string  $name
@param  mixed  $attributes

@return array