Models
Learn what models are and how they can be used to fetch data from the database.
We'll cover the following
A model in AdonisJs is similar to the eloquent of Laravel. It uses the same pattern of active record, which is an approach to access the database. We can wrap database queries and relationships inside models. Every model represents a database table.
Get hands-on with 1400+ tech skills courses.