承知済みのみに送信するようになっておりますでしょうか?

このコミットが含まれているのは:
守矢諏訪子 2022-02-07 16:30:44 +09:00
コミット 5af2933d2d
1個のファイルの変更4行の追加2行の削除

ファイルの表示

@ -815,8 +815,10 @@ class MeetingsController extends Controller {
// 子供達を知らせます。
if (null !== ($fr = FatherRelation::where('father_id', (int)session()->get('fathers')['id'])->get())) {
foreach ($fr as $f) {
if (null !== ($child = Child::where('id', $f->child_id)->first())) {
Mail::to($child->email)->send(new MeetingEditNotification(session()->get('fathers')['company'], (int)$meeting_id));
if (null !== ($meeting = MeetingApprovals::where('meeting_id', (int)$meeting_id)->where('child_id', $f->child_id)->whereNotNull('approval_at')->first())) {
if (null !== ($child = Child::where('id', $f->child_id)->first())) {
Mail::to($child->email)->send(new MeetingEditNotification(session()->get('fathers')['company'], (int)$meeting_id));
}
}
}
}