The data model is one of the most important parts of any Laravel application. Many systems will be designed around this data model, so it is typically one of the first things we approach during development.
I learned about data modeling before I knew there was such thing as a framework, designing my data model in CREATE TABLE statements. In this tutorial, I will walk through how you can approach data modeling in your Laravel application - and some tips on what I find helpful.
Let’s first look at our User model, which is not quite the same as the typical Laravel user model.