Naming many-to-many tables in Twill and Laravel

Hi everyone! This may ultimately be more of a Laravel question than a Twill question, but any help is appreciated.

I have a repository products and a repository reviews. I wanted to link these , so created a repository I named productReviews.

The migrations are created with the name product_reviews and that migration logic is expecting me to use that name (when I try to change it to singular, the migration would fail). When I try to use that table in the CMS something in Twill/Laravel is expecting the name of the table to be product_review (singular). So I end up having to manually change the name of the table after running the migration. Obviously this doesn't seem quite right.

What am I missing? Should the original repository creation have been productReview instead of productReviews ?
Was this page helpful?