Probably, you are thinking that Eloquent is cool and very powerful.
Well, yes, it is. However, sometimes,
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 chapter, 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.
A simple polymorphic relationship can be used when you have an entity that can belong to either one entity ...