Using tinker
App\Administrator::find(1)->subordinates
gives me the same error "LogicException with message 'Relationship method must return an object of type Illuminate\Database\Eloquent\Relations\Relation'"
while
App\Administrator::find(1)->subordinates()
works!
Check laracast for videos on relations, I know sometimes you put the () and sometimes not. Been a while since I viewed it.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community