force https
This commit is contained in:
@@ -34,9 +34,9 @@ class AppServiceProvider extends ServiceProvider
|
||||
);
|
||||
});
|
||||
|
||||
if (config('app.env') === 'production') {
|
||||
if (config('app.env') === 'production' || config('app.force_https')) {
|
||||
URL::forceScheme('https');
|
||||
}
|
||||
}
|
||||
|
||||
Gate::define('viewApiDocs', function (User $user) {
|
||||
return $user->role === Role::SUPER_ADMIN;
|
||||
|
||||
Reference in New Issue
Block a user