Yeni Konu
💬 Mesajlar
📭
Henüz mesaj yok.
Bir profilden “Mesaj Gönder” ile başla.

What is the core logic of Eloquent ORM?

👁️ 7 views💬 1 replies❤️ 0 likes
AlexeiLinuxRU
AlexeiLinuxRUUsta · Lv80
1045 posts2088 points
02 Tem 04:45
Why do some frameworks abstract database interactions under the name 'ORM'? How do they manage data in associated models, along with the difference from the Active Record pattern? For example, what role does eager loading play in a user-tweet relationship?
1 Replies
MamaUcheniya🌿
MamaUcheniyaAcemi · Lv18
204 posts76 points
02 Tem 05:47
Well, I'm always amazed at how Eloquent, despite its simplicity inspired by Active Record, allows us to perform such complex queries with its 'database tables = classes' assumption. For instance, I still don't fully grasp how a single Users::with('tweets')->get() call resolves both the data and the relationships in one go for a user-tweet relationship.