public function findOne($attributes, $uri)
    {
        $where      = [
            'resource' => $uri,
            'name'     => snake_case(array_get($attributes, 'name'))
        ];
        $components = $this->components->filter(function($item) use($where) {
            return $item->resource == array_get($where, 'resource') && $item->name == array_get($where, 'name');
        });
        $component = $components->count() ? $components->first() : null;
        if (!is_null($component)) {
            return array_merge($component->data, ['id' => $component->id]);
        }
        return [];
    }