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');
|
URL::forceScheme('https');
|
||||||
}
|
}
|
||||||
|
|
||||||
Gate::define('viewApiDocs', function (User $user) {
|
Gate::define('viewApiDocs', function (User $user) {
|
||||||
return $user->role === Role::SUPER_ADMIN;
|
return $user->role === Role::SUPER_ADMIN;
|
||||||
|
|||||||
@@ -123,4 +123,5 @@ return [
|
|||||||
'store' => env('APP_MAINTENANCE_STORE', 'database'),
|
'store' => env('APP_MAINTENANCE_STORE', 'database'),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'force_https' => env('FORCE_HTTPS', false),
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user