You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, when I add LaravelNovaTranslationEditor in NovaServiceProvider I get this error
"TypeError
Return value of DigitalCreative\CollapsibleResourceManager\Resources\TopLevelResource::parseResource() must be an instance of DigitalCreative\CollapsibleResourceManager\Resources\AbstractResource or null, instance of Eboye\LaravelNovaTranslationEditor\LaravelNovaTranslationEditor returned (View: D:\Eurocoders\hosting\nova\resources\views\layout.blade.php)"
My code is this:
public function tools()
{
$resources = [];
.....
$resources[] = Group::make([
'label' => 'System',
'resources' => [
\App\Nova\Plan::class,
\App\Nova\PaymentMethod::class,
\App\Nova\Coupon::class
]
]);
$resources[] = Group::make([
'label' => 'Articles',
'resources' => [
\App\Nova\Article::class,
\App\Nova\ArticleCategory::class
]
]);
$resources[] = Group::make([
'label' => 'Pages',
'resources' => [
\App\Nova\Page::class,
\App\Nova\Faq::class,
\App\Nova\Review::class
]
]);
$resources[] = Group::make([
'label' => 'Translations',
'resources' => [
new LaravelNovaTranslationEditor
]
]);
# Define variable to hold the available custom tools
$customTools = [];
$customTools[] = new \BinaryBuilds\NovaAdvancedCommandRunner\CommandRunner;
# Define variable to hold the navigation
$navigation = [ new CollapsibleResourceManager([
'navigation' => [
TopLevelResource::make([
'label' => 'Resources',
'resources' => $resources
])
]
]) ];
# Merge the custom tools with resources navigation
return array_merge($navigation, $customTools);
}
The text was updated successfully, but these errors were encountered:
Hi, when I add LaravelNovaTranslationEditor in NovaServiceProvider I get this error
"TypeError
Return value of DigitalCreative\CollapsibleResourceManager\Resources\TopLevelResource::parseResource() must be an instance of DigitalCreative\CollapsibleResourceManager\Resources\AbstractResource or null, instance of Eboye\LaravelNovaTranslationEditor\LaravelNovaTranslationEditor returned (View: D:\Eurocoders\hosting\nova\resources\views\layout.blade.php)"
My code is this:
public function tools()
{
$resources = [];
The text was updated successfully, but these errors were encountered: