cyrilbras/email_verification_bundle
Illuminate\Auth, Illuminate\Mail, Illuminate\Notifications). The challenge lies in bridging Symfony components (e.g., EventDispatcher) with Laravel’s event system.Str::random() or Hashids for token generation (compatible with Laravel\Sanctum or Laravel Passport if extended).User::create() (hook into Laravel’s registered event).TokenGenerator with Laravel’s Str::random() or a custom service.Mail::to()->send() instead of Symfony Mailer./verify-email/{token}).user_verification_tokens (Laravel’s migrations can adapt this).EventDispatcher can be wrapped in Laravel’s Event facade or replaced with Laravel’s listeners.HttpFoundation, EventDispatcher) may introduce:
ShouldQueue would need to be manually integrated for async email sending.Illuminate\Auth\Events\Verified and MustVerifyEmail trait. What unique value does this bundle offer (e.g., multi-factor workflows, custom token expiration)?EventDispatcher integrate with Laravel’s event system? Will a facade wrapper suffice, or is a full rewrite needed?Illuminate\Auth and Illuminate\Notifications. Prioritize leveraging existing Laravel features unless the bundle offers critical extensions (e.g., advanced token revocation, multi-step verification).symfony/http-foundation and symfony/event-dispatcher packages to minimize conflicts. Alternatively, abstract Symfony dependencies behind Laravel interfaces.Mail facade or third-party services (e.g., spatie/laravel-mailables).Notification system for templating (e.g., Mailable classes).Schema::create('verification_tokens', ...)).HasApiTokens or MustVerifyEmail traits if partial functionality suffices.app/Models/User.php, app/Providers/AuthServiceProvider.php).VerificationTokenService class wrapping the bundle’s TokenGenerator.VerifyEmailMiddleware).Queue::fake() to simulate async workflows.str_replace vs. str_replace_array).spatie/laravel-permission, laravel/breeze) that may also use Symfony components.composer why-not to identify dependency clashes.TokenGenerator with Laravel’s Str::random())./verify-email/{token}.Mail facade.VerificationSent → verified:send).composer.json to avoid unexpected updates.SymfonyEventDispatcherAdapter).config/headoo_email_verification.php) via Laravel’s config/email_verification.php.HttpFoundation exceptions) may require familiarity with both ecosystems.hash() vs. Laravel’s hash()).dd() or Xdebug for Symfony stack traces.Illuminate\Auth docs for alternatives.verification_tokens table has indexes on user_id and token columns.Mail::later()) to avoid synchronous delays.How can I help you explore Laravel packages today?