fix https
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user