Sounds like an issue needs to be created. Thanks for the information. And where have you been?
Mar 14, 2024
6
Level 47
Laravel 11 Service Providers
I ran into an issue and wanted to show how I was able to resolve it until more of the documentation is updated.
Wanted to try out Laravel 11 and so started a new project. Also called in Jetstream with Inertia. BAM errors for not having a proper class bound while registering a user. Googling shows we need to add a provider to the app.php which that "providers" array doesn't exist. Not sure why it updates the array with JetStream class but not the Fortify class.
New location is /bootstrap/providers.php:
It was
<?php
return [
App\Providers\AppServiceProvider::class,
App\Providers\JetstreamServiceProvider::class,
];
And should be
<?php
return [
App\Providers\AppServiceProvider::class,
App\Providers\JetstreamServiceProvider::class,
App\Providers\FortifyServiceProvider::class,
];
Please or to participate in this conversation.