Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function handle() |
||
41 | { |
||
42 | DB::transaction(function () { |
||
43 | $students = Student::with('user')->get(); |
||
44 | $students->each(function ($student) { |
||
45 | $user = $student->user; |
||
46 | if ($user->verified) { |
||
47 | return; |
||
48 | } |
||
49 | |||
50 | Mail::to($user)->send(new RegistrationConfirmation($user)); |
||
51 | }); |
||
55 |