force https
This commit is contained in:
parent
c19e39fe5e
commit
d787a36480
@ -22,6 +22,10 @@ public function register(): void
|
|||||||
*/
|
*/
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
|
if (config('app.env') === 'production') {
|
||||||
|
URL::forceScheme('https');
|
||||||
|
}
|
||||||
|
|
||||||
Gate::define('super-admin', function (User $user) {
|
Gate::define('super-admin', function (User $user) {
|
||||||
return $user->role === Role::SUPER_ADMIN;
|
return $user->role === Role::SUPER_ADMIN;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user