refactor: apply rector refactoring

This commit is contained in:
peaklabs-dev 2025-12-02 21:17:50 +01:00
parent 5b051cec8d
commit c68372fc1e
No known key found for this signature in database

View file

@ -45,7 +45,7 @@ final class AppServiceProvider extends ServiceProvider
*/
private function configureHttps(): void
{
if (App::isProduction() && (bool) config('app.force_https')) {
if (App::isProduction() && config()->boolean('app.force_https')) {
URL::forceScheme('https');
}
}
@ -85,6 +85,7 @@ final class AppServiceProvider extends ServiceProvider
if (! App::isProduction()) {
Model::preventLazyLoading();
}
Model::preventSilentlyDiscardingAttributes();
Model::preventAccessingMissingAttributes();