Merge pull request #294 from nakazawakan/bugfix-admin-father-list

FathersController.phpのエラー修正
このコミットが含まれているのは:
chankan77 2022-01-29 16:03:22 +09:00 committed by GitHub
コミット 5537d4d546
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -142,7 +142,7 @@ class FathersController extends Controller {
public function checkRegisterMain (Request $r) {
// トークンの確認
if (null === ($get = EmailActivation::select('ttl')where('token', $r->token)->first())) {
if (null === ($get = EmailActivation::select('ttl')->where('token', $r->token)->first())) {
return ['status_code' => 400, 'error_messages' => ['不正な登録トークン。']];
}
@ -402,7 +402,7 @@ class FathersController extends Controller {
if (request()->route()->action['as'] == 'pip') {
$login_user_datum = $father->toArray();
unset($login_user_datum['password']);
// セッションに保存する
session()->put('fathers', $login_user_datum);
}