updated https handling for production
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run

This commit is contained in:
Edward Tirado Jr 2025-12-26 13:07:33 -06:00
parent 54355fc942
commit 4c99626acc

View file

@ -4,6 +4,7 @@ namespace App\Providers;
use App\Models\Interfaces\MovieDbInterface; use App\Models\Interfaces\MovieDbInterface;
use App\Services\OmdbService; use App\Services\OmdbService;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider class AppServiceProvider extends ServiceProvider
@ -21,8 +22,8 @@ class AppServiceProvider extends ServiceProvider
*/ */
public function boot(): void public function boot(): void
{ {
if ($this->app->environment('production')) { if (app()->environment('production')) {
\URL::forceScheme('https'); URL::forceScheme('https');
} }
} }
} }