u can't since they are not aware of which objects seo are you trying to get. , but this is possible :
Location::find(1)->seo();
Thanks, gayanhewa
A big lightbulb just went off in my head. My understanding of Eloquent just increased by about 1000%
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community