it failed on this line: `$model[0]->create($input['data'][$rowFirstId]);` I could make it work with: `$model->create($input['data'][$rowFirstId]);`