Level 58
To extract a specific column from the raw query result, you can use the array_column function. Here's an example:
$data = DB::select('...raw query...');
$col1Data = array_column($data, 'col1');
In this example, $col1Data will be an array containing the values of the 'col1' column from the $data array.