Skip to content

Email verification sent twice due to duplicate Registered event listeners #58574

@Billiboy71

Description

@Billiboy71

Laravel Version

12.49.0

PHP Version

8.3.28

Database Driver & Version

No response

Description

In Laravel 11/12 event listeners can be registered twice when
App\Providers\EventServiceProvider is enabled in bootstrap/providers.php
while the framework also boots its own
Illuminate\Foundation\Support\Providers\EventServiceProvider.

This leads to duplicate listener registrations and side effects
(e.g. verification emails being sent twice).

Steps To Reproduce

In Laravel 11/12 event listeners can be registered twice when
App\Providers\EventServiceProvider is enabled in bootstrap/providers.php
while the framework also boots its own
Illuminate\Foundation\Support\Providers\EventServiceProvider.

This leads to duplicate listener registrations and side effects
(e.g. verification emails being sent twice).

Commenting out
// App\Providers\EventServiceProvider::class
in bootstrap/providers.php
removes the duplicates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions