Object of class stdClass could not be converted to string - laravel

后端 未结 6 1169
野性不改
野性不改 2021-02-18 17:04

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:



        
6条回答
  •  [愿得一人]
    2021-02-18 17:31

    Try this simple in one line of code:-

    $data= json_decode( json_encode($data), true);
    

    Hope it helps :)

提交回复
热议问题