The "all" function returns a collection, not a query. You need to use something like Bears::with('trees', 'picnics')->get()
.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community