configureDefaults(); // The colour profile the admin chose in Admin settings; asked each time a page, mail or // error page draws its colours, so a new choice applies at once in every Octane worker. Scheme::resolveProfileUsing(fn (): ?string => Setting::get('color_profile')); } /** * 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(12) ->mixedCase() ->letters() ->numbers() ->symbols() ->uncompromised() : null ); } }