Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
EventServiceProvider
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 shouldDiscoverEvents
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\Providers;
4
5use Illuminate\Auth\Events\Registered;
6use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
7use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
8
9class EventServiceProvider extends ServiceProvider
10{
11    /**
12     * The event to listener mappings for the application.
13     *
14     * @var array<class-string, array<int, class-string>>
15     */
16    protected $listen = [
17        Registered::class => [
18            SendEmailVerificationNotification::class,
19        ],
20    ];
21
22    /**
23     * Determine if events and listeners should be automatically discovered.
24     *
25     * @return boolean
26     */
27    public function shouldDiscoverEvents(): bool
28    {
29        return false;
30    }
31}