Closed xhava closed 10 years ago
Add a messages
property on your form object.
protected $messages = [
'required' => 'Yo, that was needed, man.'
];
thanks @JeffreyWay but it does not work for me.
i have the next
<?php namespace CarteroElectronico\Forms;
use Laracasts\Validation\FormValidator;
class LoginForm extends FormValidator {
protected $rules = [
'email_login' => 'required',
'password_login' => 'required'
];
protected $messages = [
'required' => 'este campo es obligatorio'
];
}
Can you try doing composer update?
thanks @JeffreyWay that worked for me.
how can i create my own messages . thanks