I am following this documentation
to implement export to Excel in my laravel 4 project.
So am trying to generate excel file from array like this:
You might need to change your object to an array first. I dont know what export does, but I assume its expecting an array.
export
You can either use
get_object_vars()
Or if its a simple object, you can just typecast it.
$arr = (array) $Object;