Figured it out! I had a UserPolicy that wasn't configured correctly, so everything was behaving as intended.
Users resource not appearing in Nova when Jetstream is installed
Running into a weird problem in a Laravel 8 project using Jetstream with Inertia (v1.4.0).
When I installed Nova, the User resource did not appear in the sidebar nav. I generated another resource for a different model and that one appeared. I deleted the default user resource and generated another one, but it also did not appear. I tried to manually register the resource using the resources method in NovaServiceProvider, but that didn't work either.
The user resource is using the default $model definition:
public static $model = \App\Models\User::class;
The only clue I have is that PHPStorm is saying that I have Multiple definitions exist for class 'User' when I check the use statement in the resource. My App\Models directory only has one User model in it, so I'm not sure where the other one is coming from.
When I hover over the class definition of my User model, PHPStorm says that Other declarations of class 'User' exist at jetstream/…/User.php, UserWithTeams.php. I've tried excluding the vendor directory from PHPStorm, but it still shows the same error.
I've also tried reverting the changes and reinstalling Nova with no luck either.
Thank you for the help!
Please or to participate in this conversation.