Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Muhammad Bilal's avatar

Need a help in Eloquent M2M

I have 3 tables

  1. vehicles
  2. drivers
  3. driver_vehicle (pivot table) I wanna insert data through form in vehicle table and driver_vehicle table (vehicle_id and driver_id) at the same time... Please give me a solution
0 likes
1 reply

Please or to participate in this conversation.