Data not inserting into the database table. but when var_dump it show all record to be inserted

My response above should have been to the OP, not to @Drummin, just to clarify. I can’t change it now.