movie-night-nuevo/app/Providers/AppServiceProvider.php

30 lines
617 B
PHP
Raw Normal View History

2025-12-12 23:07:04 -06:00
<?php
namespace App\Providers;
use App\Models\Interfaces\MovieDbInterface;
use App\Services\OmdbService;
2025-12-26 13:07:33 -06:00
use Illuminate\Support\Facades\URL;
2025-12-12 23:07:04 -06:00
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
{
2025-12-26 13:07:33 -06:00
if (app()->environment('production')) {
URL::forceScheme('https');
2025-12-14 12:39:24 -06:00
}
2025-12-12 23:07:04 -06:00
}
}