Get() returns a collection. Try first() instead.
That worked, thanks.
It would be nice to know which methods can and can't be used. The docs aren't very clear on that.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.