Merge pull request 'fix: force HTTPS scheme in all environments' (#3) from fix/error-on-production into main
Reviewed-on: #3
This commit is contained in:
@@ -23,9 +23,7 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
if ($this->app->environment('production')) {
|
URL::forceScheme('https');
|
||||||
URL::forceScheme('https');
|
|
||||||
}
|
|
||||||
|
|
||||||
Gate::before(function ($user, $ability) {
|
Gate::before(function ($user, $ability) {
|
||||||
return $user->hasRole('super_admin') ? true : null;
|
return $user->hasRole('super_admin') ? true : null;
|
||||||
|
|||||||
Reference in New Issue
Block a user