i'm trying to validate based upon different columns for eg.
Scene:1 Title: Home | Nav_group: header Title: Home | Nav_group: footer
this should be valid
where as
Scene:2 Title: Home | Nav_group: header Title: Home | Nav_group: header
this should give error
$this->validate($request, [
'title' => 'unique:navigation_links,navigation_group_id'
]);
this is the validation code i used but yet Scene 2 is also valid.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community