EventServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 26
rs 10
wmc 1

1 Method

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