->getRelated for menu didnt work.
I follow this manual
https://twillcms.com/guides/page-builder-with-blade/adding-navigation.html
I do all the thinks which is there,
I do some links to my pages in twill
I will be see a relatitons in twill table
But when I call in compoment
I have this error
In my code.
The
In
In
I didnt understod what is wrong and why the
Thx for answer
https://twillcms.com/guides/page-builder-with-blade/adding-navigation.html
I do all the thinks which is there,
I do some links to my pages in twill
I will be see a relatitons in twill table
But when I call in compoment
$link->getRelated('page')->first()->slug}}I have this error
Attempt to read property "slug" on nullIn my code.
The
MenuPageLink.php is use HasRelated;In
MenuPageLinkRepository.php is protected $relatedBrowsers = ['page']; and use HandleNesting;In
MenuPageLinkController is $form->add(Browser::make()->name('page')->modules([Page::class]));I didnt understod what is wrong and why the
getRelated() didnt get the relations.Thx for answer
Twill
