-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
laravel/jetstream
#1120Description
- Laravel Version: 9.24.0
- Nova Version: 4.12.14
- Laravel JetStream: 2.11.0
Description:
If the application has JetStream installed and configured a custom auth guard with a provider eloquent (example: App/Models/Admin) when authenticating in Nova it throws an error:
Call to undefined method App\Models\Admin::allTeams()
Which seems that in Nova the middleware \Laravel\Jetstream\Http\Middleware\ShareInertiaData is loaded too which causes the issue.
Detailed steps to reproduce the issue on a fresh Nova installation:
- Have JetStream installed
- Create a custom auth guard
- Set the guard in nova config as the default
- Authenticate in Nova
- Error occurs.
clementmas
Metadata
Metadata
Assignees
Labels
No labels