LogSuccessfulLogout   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 3
b 0
f 0
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 1
1
<?php
2
3
namespace App\Listeners;
4
5
use Illuminate\Auth\Events\Logout;
6
use Illuminate\Support\Facades\Log;
7
8
class LogSuccessfulLogout
9
{
10
    /**
11
     * Handle the event
12
     */
13
    public function handle(Logout $event)
14
    {
15
        Log::info('User '.$event->user->full_name.' logged out', [
16
            'User ID'    => $event->user->user_id,
17
            'Username'   => $event->user->username,
18
            'IP Address' => \Request::ip()
19
        ]);
20
    }
21
}
22