با سلام
من میخوام این کوری را با eloquent بزنم
باید چی کار کنم
INSERT into accounting(person_code,service_code,acc_bed,acc_bes,acc_description) SELECT person_code,services.service_code,services.srv_amount,0,concat('تمدید دوره ',services.srv_name) from (select accounting.person_code,accounting.service_code from accounting where
(((unix_timestamp() - unix_timestamp(accounting.created_at)) / 60) / 60) / 24 >= 30) a
LEFT JOIN services ON services.service_code = a.service_code
دقیقا تقسیمش که هست نمیدونم چه کار کنم
شاید پاسخ شما همینجا باشد