Support the ongoing development of →
Configuration Database Eloquent
Last updated 2 months ago.

You can override all the naming if you have to.

In your example your model would be TbHappyCustomer if following convention.

Last updated 6 years ago.

thanks lagbox. What about if I need a pivot table for 2 tables that have "_" ?


Then it will be those two model names snake cased in alpha order. some_other_model_tb_happy_customer. This can be overriden when declaring the belongsToMany relationship if needed.


Sign in to participate in this thread!


Your banner here too?


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

Your logo here?

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

© 2022 - All rights reserved.