class AuthServiceProvider extends AuthServiceProvider (View source)

Registers authentication and authorization services for the application.

Specifically, this provider registers a custom user provider to support binary UUID identifiers in users tables, allowing Laravel's authentication system to correctly retrieve users by their UUIDs.

Properties

protected array<class-string,class-string> $policies

The policy mappings for the application.

Methods

void
boot()

Register any authentication / authorization services.

Details

void boot()

Register any authentication / authorization services.

This method registers a custom user provider under the "custom" key. The custom provider supports binary UUIDs, ensuring that users can be authenticated correctly when their primary key is stored as binary.

Return Value

void