リクエスト化
このコミットが含まれているのは:
コミット
1b83c5b417
|
@ -249,14 +249,14 @@ https://kikikan.jp/c-account/forgot-password/reset/'.$token;
|
|||
return ['status_code' => 200, 'params' => $result];
|
||||
}
|
||||
|
||||
public function listOfFather ($father_id) {
|
||||
if (!isset($father_id)) {
|
||||
public function listOfFather (Request $r) {
|
||||
if (!isset($r->father_id)) {
|
||||
return ['status_code' => 400];
|
||||
}
|
||||
$result = [];
|
||||
$child_select = ['first_name', 'last_name', 'tel'];
|
||||
|
||||
if (null === ($list = FatherRelation::select('child_id')->where('father_id', (int)$father_id)->orderBy('created_at', 'desc')->get())) {
|
||||
if (null === ($list = FatherRelation::select('child_id')->where('father_id', (int)$r->father_id)->orderBy('created_at', 'desc')->get())) {
|
||||
return ['status_code' => 400];
|
||||
}
|
||||
|
||||
|
|
新しいイシューから参照