FortifyServiceProvider.php 889 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace App\Providers;
  3. use App\Actions\Fortify\CreateNewUser;
  4. use App\Actions\Fortify\ResetUserPassword;
  5. use App\Actions\Fortify\UpdateUserPassword;
  6. use App\Actions\Fortify\UpdateUserProfileInformation;
  7. use Illuminate\Support\ServiceProvider;
  8. use Laravel\Fortify\Fortify;
  9. class FortifyServiceProvider extends ServiceProvider
  10. {
  11. /**
  12. * Register any application services.
  13. *
  14. * @return void
  15. */
  16. public function register()
  17. {
  18. //
  19. }
  20. /**
  21. * Bootstrap any application services.
  22. *
  23. * @return void
  24. */
  25. public function boot()
  26. {
  27. Fortify::createUsersUsing(CreateNewUser::class);
  28. Fortify::updateUserProfileInformationUsing(UpdateUserProfileInformation::class);
  29. Fortify::updateUserPasswordsUsing(UpdateUserPassword::class);
  30. Fortify::resetUserPasswordsUsing(ResetUserPassword::class);
  31. }
  32. }