The way to go is $category->parent->name
If you call parent with () the query object will be returned (thats why there is an error) but without it laravel is smart enough to know it should execute the query and associate the resulting model to the parent attribute :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community