php - how can change custom messages errors at login action in laravel 5.2 -


i'm new user use in laravel 5.2 framework.

i have problem modify validator error messages @ login action. change other part of action example register , resetpasspord ...

but can't find login action. found link when searched @ google not me,

i know laravel use route::auth(); in route file login action can change error message language !?

i test sample code @ requests\request.php this:

public function messages() {     return [         'required' => 'test error message',         'email.unique' => 'test error message',     ]; } 

but wasn't change !!!

i dont change action sample login in laravel, , create custom login, wanna modify validator custom messages in app or part of login action

i'm sorry if language english not prefect

thank you

one: in config/app.php change

'locale' => 'en' 'locale' => 'es' 

two: copy files in directory resources/lang/en resources/lang/es

three: changes language messages in file resources/lang/es/validation.php

e.g.

'required' => 'el :attribute es requerido.', 

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -