Support the ongoing development of Laravel.io →
Configuration Database Eloquent
Last updated 2 years ago.
0

I think there is no any need to do that.

also for me, currently there is no any reason to use an auto_incrementing id column because there is no need to do something directly with a pivot table. it just maintain a relationship

There isn't anything in laravel docs about what you said but they say:

"By default, only the model keys will be present on the pivot object. If your pivot table contains extra attributes, you must specify them when defining the relationship:"

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

r3bornuk r3bornuk Joined 3 Jan 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.