Support the ongoing development of Laravel.io →
Validation

Hello all,

I have a Laravel backend working with AngularJS. Via angular service i send a POST request to my API, laravel get something like this :

{
id: 0,
name: mary,
details: [
 0: {data1: true, data2: false},
 1: {data1: true, data2: false}
] 
}

I know how to validate id and name, but i have no idea of how to validate each entry inside the details array.

excuse me for typo.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.