2026-02-18 00:15:02 -06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
|
|
use App\Interfaces\MovieDbInterface;
|
2026-04-03 00:39:37 -05:00
|
|
|
use App\Models\User;
|
2026-02-18 00:15:02 -06:00
|
|
|
use App\Services\OmdbMovieService;
|
2026-04-03 00:39:37 -05:00
|
|
|
use Illuminate\Auth\Notifications\ResetPassword;
|
2026-02-18 00:15:02 -06:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Register any application services.
|
|
|
|
|
*/
|
|
|
|
|
public function register(): void
|
|
|
|
|
{
|
|
|
|
|
$this->app->bind(MovieDbInterface::class, OmdbMovieService::class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Bootstrap any application services.
|
|
|
|
|
*/
|
|
|
|
|
public function boot(): void
|
|
|
|
|
{
|
2026-04-03 00:39:37 -05:00
|
|
|
ResetPassword::createUrlUsing(function (User $user, string $token) {
|
|
|
|
|
return config('app.frontend_url')."/auth/reset-password/$token?email=".urlencode($user->email);
|
|
|
|
|
});
|
2026-02-18 00:15:02 -06:00
|
|
|
}
|
|
|
|
|
}
|