Eloquent save() method not working inside for loop
问题 I have a table like given below and this table is going to be used for project images. id: primary key project_id: a column that has correlation with projects. order_num: represents image list order for specific project (eg. interior view of project, exterior view of construction project, a different aspect etc...) +---------+-------------+-----------+ | id | project_id | order_num | +---------+-------------+-----------+ | 1 | 15 | 0 | +---------+-------------+-----------+ | 2 | 15 | 0 | +---