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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community