mercredi 24 janvier 2018

I need to apply validation on the combination of columns in laravel model rule

    public static $rules = [
    'name' => 'min:3|unique:enterprise,name|required',
    'lang_id'=> 'min:1|unique:lang_id',
];

This is rule for separate column validation but I need if either column name or lang_id is different then value should be updated



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire