moved condition

This commit is contained in:
CHIEFSOFT\ameye
2024-01-27 12:41:08 -05:00
parent ad61d31b2c
commit 82bd3f2e9d
+4 -3
View File
@@ -24,13 +24,14 @@ class AppServiceProvider extends ServiceProvider
*/ */
public function boot() public function boot()
{ {
if( env('APP_ENV') == 'production') {
\URL::forceScheme('https');
}
// echo env('APP_ENV'); // echo env('APP_ENV');
// exit(); // exit();
// \URL::forceScheme('https'); // \URL::forceScheme('https');
Schema::defaultStringLength(191); Schema::defaultStringLength(191);
//config('app.app_env') //config('app.app_env')
if( env('APP_ENV') == 'production') {
\URL::forceScheme('https');
}
} }
} }