fix https

This commit is contained in:
antv
2026-07-02 10:22:47 +07:00
parent 83a529b4c5
commit c993f848cb
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -23,6 +23,10 @@ class AppServiceProvider extends ServiceProvider
public function boot(): void
{
if (str_starts_with(config('app.url'), 'https://') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https')) {
\Illuminate\Support\Facades\URL::forceScheme('https');
}
if (config('app.debug')) {
DB::listen(function ($query) {
Log::channel('query')->info(