Browsing as a guest. You can post with a name and email, like, and report. Sign in as Maya, Tomas, Priya… to pin, moderate, and see author badges from the other side.

Practical Eloquent · Chapter 5

Polymorphic relationships in practice

Maya Chen · 16:02

▶
  1. 01 morphMany and morphTo
  2. 02 Why you want a morph map
  3. 03 Indexing morph columns
  4. 04 Eager loading across types

Building a comments table that works for every model in your application, and the morph map that keeps it stable.

Student questions (1)

Or Log in to comment!

Aisha Bello Aisha Bello

dsadas