Рет қаралды 7,159
Let's be friends:
/ aashish_dhamala
Github Repo:
Please read the readme to access the code for the specific video.
github.com/lar...
Laravel 8 Advanced - Has One Relationship
• Laravel Advanced - Has...
Laravel 8 Advanced - Has Many Relationship
• Laravel Advanced - Has...
In this video, I have discussed the has many polymorphic relationship.
A polymorphic relationship allows the target model to belong to more than one type of model using a single association.
In a one to many polymorphic relationship, the target model can belong to more than one type of model on a single association. For example, imagine users of your application can "comment" on both posts and products. Using polymorphic relationships, you may use a single comments table for both of these scenarios.