public function scopeWhereFullPath(Builder $query, string $path)
    {
        $itemSlugs = explode('/', $path);

        return $query->where('slug', '=', end($itemSlugs))
            ->get()
            ->filter(function ($item) use ($path) {
                return $item->full_path === str_start($path, '/');
            });
    }