well i made few changes and it worked,now i'm facing a problem,actually i have faced it before too but rn i'm not able to solve it,please guide me about it.
Illuminate \ Database \ QueryException (HY000)
SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value (SQL: insert into `products_images` (`image`, `product_id`, `updated_at`, `created_at`) values (3762.jpg, 1, 2020-06-03 04:48:58, 2020-06-03 04:48:58))
@michaloravec i don't know much about it,i just debugged it again from the start,btw i face an issue that some times by restarting my pc,code works well,i don't know when i need to restart my pc.