jeudi 24 septembre 2015

How to set custom attribute labels for nested inputs in Laravel

I'm trying to get custom labels in the error messages. My inputs are nested and i am able to validate them using dot notation (e.g. POLICY.HOLDER.NAME ). They have to be nested and all caps to match the db structure so I can easily mass assign them.

Using the same notation in 'attributes' => ['POLICY.HOLDER.NAME' => 'Policy Holder'] in resources/lang/en/validation.php yielded no result.

I'm just trying to get them to match the labels i've set in the form.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire