{"action":"closed","issue":{"url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1151","repository_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel","labels_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1151/labels{/name}","comments_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1151/comments","events_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1151/events","html_url":"https://github.com/Maatwebsite/Laravel-Excel/issues/1151","id":219487960,"number":1151,"title":"Get an error: Object of class stdClass could not be converted to string when export to excel using maatwebsite","user":{"login":"imamahmadashari","id":26919237,"avatar_url":"https://avatars1.githubusercontent.com/u/26919237?v=4","gravatar_id":"","url":"https://api.github.com/users/imamahmadashari","html_url":"https://github.com/imamahmadashari","followers_url":"https://api.github.com/users/imamahmadashari/followers","following_url":"https://api.github.com/users/imamahmadashari/following{/other_user}","gists_url":"https://api.github.com/users/imamahmadashari/gists{/gist_id}","starred_url":"https://api.github.com/users/imamahmadashari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imamahmadashari/subscriptions","organizations_url":"https://api.github.com/users/imamahmadashari/orgs","repos_url":"https://api.github.com/users/imamahmadashari/repos","events_url":"https://api.github.com/users/imamahmadashari/events{/privacy}","received_events_url":"https://api.github.com/users/imamahmadashari/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-04-05T07:06:38Z","updated_at":"2018-03-23T14:55:03Z","closed_at":"2018-03-23T14:55:03Z","author_association":"NONE","body":"I want to show three tables, three tables are later to be exported, but I am having a problem here, please help me resolve my problem. Thank you.\r\n\r\npublic function downloadExcel($type)\r\n{\r\n     $data = DB::table('tb_siswa')\r\n            ->join('tb_ayah', 'tb_siswa.id', '=', 'tb_ayah.id_siswa')\r\n            ->join('tb_ibu', 'tb_siswa.id', '=', 'tb_ibu.id_siswa')\r\n            ->select('tb_siswa.nm_lengkap', 'tb_ayah.nm_ayah', 'tb_ibu.nm_ibu')\r\n            ->get();   \r\n    return Excel::create('Data siswa', function($excel) use ($data) {\r\n        $excel->sheet('datasiswa', function($sheet) use ($data)\r\n        {\r\n            $sheet->fromArray($data);\r\n        });\r\n    })->download($type);\r\n}"}}
{"actor":{"display_login":"patrickbrouwers"}}