Support the ongoing development of →
Requests Eloquent
Last updated 2 years ago.

If your customizedExercises input is an array, it is that you need to loop thru eg,

Route::post('/api/customized-exercises',function() {
    $created = [];
    foreach(Request->customizedExercises as $exercise) {
        $created[] = App\CustomizedExercise::create($exercise);

  return $created;

Sign in to participate in this thread!


Your banner here too?

shigg1120 shigg1120 Joined 16 Dec 2015


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.

© 2024 - All rights reserved.