How can I get the array from a object? I'm trying to get to the empty array so that I can validate on it's empty state.
$object = Illuminate\Database\Eloquent\Collection Object;
print_r($object);
if(empty($object->array)){
}
output
Illuminate\Database\Eloquent\Collection Object
(
[items:protected] => Array
(
)
)