LoginSignup
0
0

More than 5 years have passed since last update.

Laravel5.1 ログインで’emailが必須です’とエラーがでる

Posted at

全くのプログラミング初心者から約半年間PHPの勉強をしております。
低レベルの質問で大変恐縮ですが、教えてください。

Laravel5.1でサイト構築しているのですが、標準のログイン認証機能を少し変更して利用をしようとしております。
そこで、AuthControllerを以下のように変更しております。

protected function validator(array $data)
{
return Validator::make($data, [
'name' => 'required|max:255',
'login_id' => 'required|max:255|unique:users',
'password' => 'required|confirmed|min:6',
]);
}

こちらでログイン画面からログインすると、emailが必須項目ですとエラーがでます。
viewやController,modelに「email」という文字は検索してもでてきません。
また、カラムにも存在しません。

原因を教えて頂けませんでしょうか。

0
0
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0