Support the ongoing development of Laravel.io →
posted 8 years ago
Requests

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.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

amrshakya amrshakya Joined 9 May 2017

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.

© 2025 Laravel.io - All rights reserved.