Call to undefined method App\Models\CourseContent\Course::label() when calling MenuItem::resource #5852
Replies: 1 comment
-
|
User error. In my NovaServiceProvider I was importing: Instead of: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to customize the left navigation menu in Nova, according to the docs here https://nova.laravel.com/docs/customization/menus.html
However, the following code:
results in a 500 server error, with the following message in the laravel logs:
Adding a function
label()to the Course Resource Class in /app/Nova/Course.php did not help:Any idea what's going on?
Beta Was this translation helpful? Give feedback.
All reactions