hello everybody im trying to merge a a few array in an array. currently with my code:
$matchs = DiraChatLog::where('status','=','Match')->whereBetween('date_access', [$request->from, $request->to])->get();
foreach ($matchs as $key => $match) {
$array[] = [
$match->date_access => $match->status,
];
}
dd($array);
so with this i get the ouput when i dd(); like:
so what i want to do now is to merge all that array to become one in array:16>
itself.
how can i do that? i have tried array merge and it isnt working either