「子供を選択しない場合、「全員に送信」となります。」って元に戻しました

このコミットが含まれているのは:
守矢諏訪子 2021-12-14 00:36:16 +09:00
コミット 974a385ee5
1個のファイルの変更0行の追加12行の削除

ファイルの表示

@ -53,18 +53,6 @@ class MeetingsController extends Controller {
return $this->pdfmeme($value);
});
// 子供を選択しない場合、「全員に送信」となります。
if (empty(json_decode($r->children))) {
$chi = [];
$rel = FatherRelation::select('child_id')->where('father_id', (int)$r->father_id)->get();
foreach ($rel as $e) {
$chi[] = $e->child_id;
}
$r->children = json_encode($chi);
}
$validate = Validator::make($r->all(), [
'title' => 'required|max:100',
'text' => 'required|max:2000',