I guess , you are thinking that Eloquent is cool and very powerful.

Well, yes, it is. However, sometimes, hasMany() or belongsToMany() isn’t enough. In some situations during your development flow, you will have to deal with more complex relationships that could involve more than two entities.

So, as a last part of this article, I will talk about polymorphic relationships. As usual, even if they aren’t complex to learn, I will cover them with many detailed examples, in order to let you fully understand the entire concept.

Let’s start from the simple polymorphic relationship.