Support the ongoing development of →
Database Forms Validation
Last updated 1 year ago.

Your validation for updating doesnt work because you are not passing the ID exception:

Validator::make($request->all(), [
    'title' => "unique:premieres,title,NULL,id,category_id,$category_id,datatype,$type".$premiere->id

WillAguilar Thank you very much for your intention, I already tried this as it mentionned at the doc ,in adding $premiere->id the validation had been canceled, other rows can be deplucated, this method work only if there is just one parameter in the unique rule

Last updated 7 years ago.

Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.