What is Eloquent ORM in Laravel?

The Eloquent ORM included with Laravel provides a beautiful, simple ActiveRecord implementation for working with your database. Each database table has a corresponding “Model” which is used to interact with that table. Models allow you to query for data in your tables, as well as insert new records into the table.

ORM: Object-relational Mapping (ORM) is a programming technique that help in converting data between incompatible type systems into object-oriented programming languages.

Laravel uses “Eloquent ORM” which allows you to work with your database objects and relationships using an eloquent and expressive syntax.

Eloquent is a new advance technique for query, using modal in Laravel. No need to write long queries, eloquent provides simple syntax to gain complex queries with in few seconds.



Leave a Reply