Fix CDN not sync http/https issue with Laravel
nginx config
if ($http_x_forwarded_proto != "https") {
rewrite ^(.*)$ https://$server_name$REQUEST_URI permanent;
}
App\Providers\AppServiceProvider.php
..register()
if ($this->app->environment() === 'production') {
$this->app['request']->server->set('HTTPS', true);
}