configureDefaults(); Auth::provider('encrypted', function ($app, array $config) { return new EncryptedUserProvider($app['hash'], $config['model']); }); } /** * Configure default behaviors for production-ready applications. */ protected function configureDefaults(): void { Date::use(CarbonImmutable::class); DB::prohibitDestructiveCommands( app()->isProduction(), ); Password::defaults(fn (): ?Password => app()->isProduction() ? Password::min(8) ->mixedCase() ->letters() ->numbers() ->symbols() ->uncompromised() : null ); } }