feat: change trust proxies

This commit is contained in:
Supan Adit Pratama 2022-04-15 11:10:37 +07:00
parent fec9f5bc03
commit 37ea04caa4
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class TrustProxies extends Middleware
* *
* @var array|string|null * @var array|string|null
*/ */
protected $proxies = ['127.0.0.1']; protected $proxies = "*";
/** /**
* The headers that should be used to detect proxies. * The headers that should be used to detect proxies.

View File

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