Answer the question
In order to leave comments, you need to log in
How to get simple array result using database query in laravel?
How to get simple array result using database query in laravel? Those. how to write a request?
Answer the question
In order to leave comments, you need to log in
If you're using the Query Builder, then it returns an array of StdClass objects.
If you're using Eloquent, then selects return collections, and collections have a toArray method .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question