Don't understand what this thing is??
What is the relationship between eloquent and M (model) in the traditional MVC model?
Can it be said that eloquent is a model that has injected data into the model?
The questioner beginner laravel, many aspects still do not understand.
Reply content:
Don't understand what this thing is??
What is the relationship between eloquent and M (model) in the traditional MVC model?
Can it be said that eloquent is a model that has injected data into the model?
The questioner beginner laravel, many aspects still do not understand.
Eloquent is an ORM framework implemented in Laravel with the following exact words:
The eloquent ORM included with Laravel provides a beautiful, simple
ActiveRecord implementation for working with your database.
So eloquent is a name for the Laravel ORM framework, which includes implementations of the Model, relationship, Builder, and other classes that provide data-to-object mapping, It also provides support for inter-model relationships (relationship).
M$ 's Entity framework, for example, is also an ORM framework that includes models and relational queries, operations, and so on.
More about eloquent can be consulted api:https://laravel.com/api/5.2/illuminate/database/eloquent.html
Not a very professional answer.
Above.