morphTo magic

Posted 4 years ago by francois


On a laracasts lesson, @JeffreyWay build an activity feed.

On this file there is a morphTo relation.

What I'm wondering is : What determine the correct model (Class) when in this file he use $event->subject->title ?


Please sign in or create an account to participate in this conversation.