https://twill.io logo
I cannot achieve to get the nestedSlug for a neste...
# ❓questions
e
I cannot achieve to get the nestedSlug for a nestedpage.. It only returns the top parent.. I implemented the hasNested trait, installed the package etc, so that all should work.. I also added the following in my admin controller:
Copy code
protected $showOnlyParentItemsInBrowsers = true;

    protected $nestedItemsDepth = 3;

    protected function form($id, $item = null)
    {
        $item = $this->repository->getById($id, $this->formWith, $this->formWithCount);

        $this->permalinkBase = $item->ancestorsSlug;

        return parent::form($id, $item);
    }
And I also added the following to the frontend controller:
Copy code
$page = app(PageRepository::class)->forNestedSlug($slug);
However it still only returns my top slug..