public function rules()
{
return [
'ru.title' => 'required|string|max:255',
'en.title' => 'string|max:255',
...
];
}
If errors occur, data is returned to form with rules names, "dot" syntax is used.
ru.title != ru[title] and field ru[title] reset value and does not show an error.
netojose/laravel-bootstrap-4-forms 2.0.6
I use dimsav/laravel-translatable.
Form fields:
Validation rules:
If errors occur, data is returned to form with rules names, "dot" syntax is used. ru.title != ru[title] and field ru[title] reset value and does not show an error.
Is there any solution for this problem?