You can override all the naming if you have to.
In your example your model would be TbHappyCustomer if following convention.
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!
The Laravel portal for problem solving, knowledge sharing and community building.