bohous
TCTwill CMS
•Created by bohous on 5/13/2023 in #👊support
->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
$link->getRelated('page')->first()->slug}}
I have this error Attempt to read property "slug" on null
In 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 answer3 replies
TCTwill CMS
•Created by bohous on 4/25/2023 in #👊support
dashboard route
Hello. I have a problem with dashboard config
I have a Category and CategoryArticle Models
I have a dashboard config in twill.php
With config like that id i go to dashboard I have a error
my route twill.php file
where I make a error.?
Thx for answer
11 replies