laravel / nova-issues

556 stars 34 forks source link

Resource named Dashboard causes resource index page issues #5577

Closed d-pollard closed 1 year ago

d-pollard commented 1 year ago

Description:

I have a model named Dashboard; naming a nova resource Dashboard causes an error. but renaming it to Dash fixes the issue

Screenshot 2023-05-26 at 4 58 00 PM

Example of it working when renamed to Dash

Screenshot 2023-05-26 at 4 58 47 PM

Detailed steps to reproduce the issue on a fresh Nova installation:

crynobone commented 1 year ago

Dashboard has been listed as reserved name not to be use: https://nova.laravel.com/docs/4.0/resources/#defining-resources

You can either rename the class or use custom uri by adding uriKey() method to the resource.