movie-night-nuevo/app/Providers/AppServiceProvider.php
Edward Tirado Jr. 4c99626acc
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
updated https handling for production
2025-12-26 13:07:33 -06:00

29 lines
617 B
PHP

<?php
namespace App\Providers;
use App\Models\Interfaces\MovieDbInterface;
use App\Services\OmdbService;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
$this->app->bind(MovieDbInterface::class, OmdbService::class);
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
if (app()->environment('production')) {
URL::forceScheme('https');
}
}
}