@@ -41,9 +41,13 @@ public function fire(Illuminate\Queue\Jobs\Job $job, $data)
41
41
42
42
if ($ response ->success ) {
43
43
if (isset ($ lastCheck ) && !$ lastCheck ->success ) {
44
- Mail::queue ('email.check.online ' , array ('check ' => $ check ), function ($ message ) use ($ check ) {
45
- $ message ->to ($ check ->theUser ->email )
46
- ->subject (trans ('check.job.email.online.subject ' , array ('title ' => $ check ->title )));
44
+ Mail::queue ('email.check.online ' , array (
45
+ 'id ' => $ check ->id ,
46
+ 'title ' => $ check ->title ,
47
+ ),
48
+ function ($ message ) use ($ check ) {
49
+ $ message ->to ($ check ->theUser ->email )
50
+ ->subject (trans ('check.job.email.online.subject ' , array ('title ' => $ check ->title )));
47
51
});
48
52
}
49
53
@@ -59,10 +63,14 @@ public function fire(Illuminate\Queue\Jobs\Job $job, $data)
59
63
}
60
64
} else {
61
65
if (isset ($ lastCheck ) && $ lastCheck ->success ) {
62
- Mail::queue ('email.check.offline ' , array ('check ' => $ check , 'response ' => $ response ), function ($ message ) use ($ check ) {
63
- $ message ->to ($ check ->theUser ->email )
64
- ->subject (trans ('check.job.email.offline.subject ' , array ('title ' => $ check ->title )));
65
-
66
+ Mail::queue ('email.check.offline ' , array (
67
+ 'id ' => $ check ->id ,
68
+ 'title ' => $ check ->title ,
69
+ 'statusCode ' => $ response ->status_code
70
+ ),
71
+ function ($ message ) use ($ check ) {
72
+ $ message ->to ($ check ->theUser ->email )
73
+ ->subject (trans ('check.job.email.offline.subject ' , array ('title ' => $ check ->title )));
66
74
});
67
75
}
68
76
0 commit comments