Force production to use SSL

This commit is contained in:
Daniel_I_Am 2021-09-03 01:41:57 +02:00
parent 1bff9c9ba0
commit 4018137d6e

View File

@ -23,6 +23,8 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
//
if(config('app.env') === 'production') {
\URL::forceScheme('https');
}
}
}