1.

Explain Eloquent in Laravel.

Answer»

Before understanding ELOQUENT let’s first understand ORM - OBJECT Relational Mapping, it’s a programming technique for CONVERTING data between a relational database and object-oriented programming, we can say it an object-relational mapper as well.

Eloquent is an ORM used in LARAVEL. It provides simple Active record implementation working with the database. Each database table has their MODEL which used to interact with the table.  Eloquent provides many types of relationships:

  • One to One
  • Many to one
  • One to Many
  • Many to Many
  • Has one through
  • Has many through


Discussion

No Comment Found