AppServiceProvider.php 616 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Auth\Notifications\ResetPassword;
  4. use Illuminate\Support\ServiceProvider;
  5. class AppServiceProvider extends ServiceProvider
  6. {
  7. /**
  8. * Register any application services.
  9. */
  10. public function register(): void
  11. {
  12. //
  13. }
  14. /**
  15. * Bootstrap any application services.
  16. */
  17. public function boot(): void
  18. {
  19. ResetPassword::createUrlUsing(function (object $notifiable, string $token) {
  20. return config('app.frontend_url')."/password-reset/$token?email={$notifiable->getEmailForPasswordReset()}";
  21. });
  22. }
  23. }