Laravel doesn't require a primary key on a pivot table, and the relationship wor...
Joel Clermont @jclermont@phpc.social
Laravel doesn't require a primary key on a pivot table, and the relationship works fine without one. Here's why I add one anyway, and the replication problem it avoids. #php #laravel https://masteringlaravel.io/daily/2026-09-11-republished-why-i-always-add-a-primary-key-to-many-to-many-tables