Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function typable()
- {
- return $this->morphTo();
- }
- public function agency()
- {
- return $this->belongsTo(agency::class);
- }
- public function actors()
- {
- return $this->hasMany(Actor::class);
- }
- $user->load(['typable.agency', 'typable.tags']);
- actor_id , agency_id
- 1 , 1
Add Comment
Please, Sign In to add comment