I have this code
$datas = DB::table('uni_staff')
->join('department', 'uni_staff.department_id', 'department.id')
->join('uni_staff_type', 'uni_staff.type_id', 'uni_staff_type.id')
->select('uni_staff.*', 'department.dep_name as departmentName' , 'uni_staff_type.user_type as
typeName')
->where('uni_staff.id', $id)
->select('uni_staff.*')
->get();
I want to put every column value of a row to an indexed array, or print the result by column index like or something else $datas[0] not column names like $datas->id.