laravel create object from array code example
Example: laravel object to array
function objectToArray(&$object)
{
return @json_decode(json_encode($object), true);
}
function objectToArray(&$object)
{
return @json_decode(json_encode($object), true);
}