Normally, with Laravel (@laravelphp on Twitter), if you create a model and use the “-m” or “–migration” flag to create the accompanying migration, it will pluralize the table.

So for example “User” model will use a “users” table; “Vehicle” model will use a “vehicles” table.

I just discovered however, that if you create a “Data” model, the table will also be created as “data” – not “datas”. It makes complete sense as datas isn’t a word.

I love using this framework.

Published by

David Peach

Pet Owner of three; Father of two; Husband to one; I enjoy sharing my gaming photography. I blog on my website. I am a disliker of generative AI (I'm essentially mandated to use it at work) My fediverse profile is part of my personal website, using WordPress.