Support the ongoing development of →
Requests Database Validation
Last updated 7 months ago.

I could do it like this

$rules = [ 'name' => Rule::unique('price_types')->where('location_id', \Session::get('location_id',-1)), 'location_id' => "required|numeric|min:1" ];


Sign in to participate in this thread!

Full Stack Europe

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.

© 2022 - All rights reserved.