I'm working with some log data and it returns about hundreds and thousands of data.
Without using chunk(), how can I use eloquent or query builder to return all the data as an array?
I've tried LogData::where('user_id', 123)->get()->toArray();
and LogData::where('user_id', 123)->toArray();
but it seems that toArray()
can only be used on single data
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community