1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Laravel ログイン時のエラーメッセージの日本語化

Posted at

Laravelの標準エラーメッセージは英語表記になっています。
こちらについては、以下の方法で日本語化できました。

エラーメッセージ日本語化
https://qiita.com/Rock22/items/1db96c801d78ebafb7cc

ただ、ログインIDの「email」と「password」が不一致だった場合は、以下のような英文表記されます。
「These credentials do not match our records.」

validation.phpに以下の変換文を追加してみたのですが、変わりありませんでした。

// 追加
'failed' => 'ログインIDとパスワードが一致していません。',

何か他に方法ありますでしょうか。

1
1
2

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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?