Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
MarkEmailVerified | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
handle | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace App\Listeners\User; |
4 | |
5 | use App\Events\User\Registered; |
6 | use Illuminate\Contracts\Queue\ShouldQueue; |
7 | |
8 | class MarkEmailVerified implements ShouldQueue |
9 | { |
10 | /** |
11 | * Create the event listener. |
12 | * |
13 | * @return void |
14 | */ |
15 | public function __construct() |
16 | { |
17 | // |
18 | } |
19 | |
20 | /** |
21 | * Handle the event. |
22 | */ |
23 | public function handle(Registered $event): void |
24 | { |
25 | $event->user->markEmailAsVerified(); |
26 | } |
27 | } |