EventServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
c 2
b 0
f 0
dl 0
loc 22
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
1
<?php
2
3
namespace App\Providers;
4
5
use App\Listeners\UserRegistered;
6
use Illuminate\Support\Facades\Event;
7
use Illuminate\Auth\Events\Registered;
8
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
9
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
10
11
class EventServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * The event listener mappings for the application.
15
     *
16
     * @var array
17
     */
18
    protected $listen = [
19
        Registered::class => [
20
            SendEmailVerificationNotification::class,
21
            UserRegistered::class,
22
        ],
23
    ];
24
25
    /**
26
     * Register any events for your application.
27
     *
28
     * @return void
29
     */
30
    public function boot()
31
    {
32
        parent::boot();
33
34
        //
35
    }
36
}
37