You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using Laravel 5.2 and I was unable to insert row if the table of my model was empty.
I found the fix in DatatablesEditor.php
line 84 replace inside else statement: $model = $model::all(); by $model = new $model;
and line 88: $model[0]->create($input['data'][$rowFirstId]); by $model->create($input['data'][$rowFirstId]);
I
The text was updated successfully, but these errors were encountered:
Hi,
I'm using Laravel 5.2 and I was unable to insert row if the table of my model was empty.
I found the fix in DatatablesEditor.php
line 84 replace inside else statement: $model = $model::all(); by $model = new $model;
and line 88: $model[0]->create($input['data'][$rowFirstId]); by $model->create($input['data'][$rowFirstId]);
I
The text was updated successfully, but these errors were encountered: