Hello there!
Using Laravel ->get() does not return any value and baum getDescendants() or other similar methods return Method does not exist, but when using Eloquent ->first() this baum methods work fine.
Any idea on this?
getDescendants() already returns an eloquent collection, that's why you can call the first() function. Try to use descendants()->get(); Fyi they both get the same results.
Hello there! Using Laravel
->get()
does not return any value and baumgetDescendants()
or other similar methods returnMethod does not exist
, but when using Eloquent->first()
this baum methods work fine. Any idea on this?