#Json field uniqueness validation

13 messages · Page 1 of 1 (latest)

analog quartz
#

anyone??

shrewd lintel
#

Can you please add more details or you can use Rule facade to hake the validation more dynamic

analog quartz
#

This is a json field

#

$table->json('title');

#

it will ahvae two keys title:{it:'',en:''}

analog quartz
shrewd lintel
#

Make it
'title.it' => 'required|unique|string'

analog quartz
shrewd lintel
#

Yes but you should specify the table and column in database

analog quartz
#

its title

#

but the value will be stores as title:{en:"",it:""} right?

analog quartz
analog quartz