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

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
]);
0

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.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.