I have following data to validate as below:

"retinfo": [
     "ret": "000"
     "ret": "001"

So, I want to validate. If I have key ret is must not null. Thank in advance!


You can validate array data like this way :

     'retinfo' => 'required|array', // validate array
     'retinfo.*.ret' => 'required|integer', // validate array field

Your Answer

