{"action":"created","issue":{"url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1887","repository_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel","labels_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1887/labels{/name}","comments_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1887/comments","events_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1887/events","html_url":"https://github.com/Maatwebsite/Laravel-Excel/issues/1887","id":379395081,"node_id":"MDU6SXNzdWUzNzkzOTUwODE=","number":1887,"title":"WithMultipleSheets HTML writeAllSheets","user":{"login":"spout","id":212091,"node_id":"MDQ6VXNlcjIxMjA5MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/212091?v=4","gravatar_id":"","url":"https://api.github.com/users/spout","html_url":"https://github.com/spout","followers_url":"https://api.github.com/users/spout/followers","following_url":"https://api.github.com/users/spout/following{/other_user}","gists_url":"https://api.github.com/users/spout/gists{/gist_id}","starred_url":"https://api.github.com/users/spout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spout/subscriptions","organizations_url":"https://api.github.com/users/spout/orgs","repos_url":"https://api.github.com/users/spout/repos","events_url":"https://api.github.com/users/spout/events{/privacy}","received_events_url":"https://api.github.com/users/spout/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-10T06:12:47Z","updated_at":"2018-11-15T10:55:53Z","closed_at":null,"author_association":"NONE","body":"### Prerequisites\r\n\r\n### Versions\r\n\r\n* PHP version: 7.1.22\r\n* Laravel version: 5.5\r\n* Package version: 3.1\r\n\r\n### Description\r\nHello,\r\n\r\nI have used the WithMultipleSheets concern, but can't find a way using events to set `$writer->writeAllSheets();` for HTML writer as explained here : \r\nhttps://phpspreadsheet.readthedocs.io/en/develop/topics/reading-and-writing-to-file/#html\r\n\r\nI've seen this related issue : https://github.com/Maatwebsite/Laravel-Excel/issues/386\r\n\r\nThe only way I found is by hacking Maatwebsite\\Excel\\Writer in the write function : \r\n```php\r\nif ($writer instanceof Html && $export instanceof WithMultipleSheets) {\r\n    $writer->writeAllSheets();\r\n}\r\n```\r\n\r\nIs there other way to achieve this ?\r\nRegards"},"comment":{"url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/comments/439000459","html_url":"https://github.com/Maatwebsite/Laravel-Excel/issues/1887#issuecomment-439000459","issue_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1887","id":439000459,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTAwMDQ1OQ==","user":{"login":"patrickbrouwers","id":7728097,"node_id":"MDQ6VXNlcjc3MjgwOTc=","avatar_url":"https://avatars2.githubusercontent.com/u/7728097?v=4","gravatar_id":"","url":"https://api.github.com/users/patrickbrouwers","html_url":"https://github.com/patrickbrouwers","followers_url":"https://api.github.com/users/patrickbrouwers/followers","following_url":"https://api.github.com/users/patrickbrouwers/following{/other_user}","gists_url":"https://api.github.com/users/patrickbrouwers/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickbrouwers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickbrouwers/subscriptions","organizations_url":"https://api.github.com/users/patrickbrouwers/orgs","repos_url":"https://api.github.com/users/patrickbrouwers/repos","events_url":"https://api.github.com/users/patrickbrouwers/events{/privacy}","received_events_url":"https://api.github.com/users/patrickbrouwers/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T10:55:53Z","updated_at":"2018-11-15T10:55:53Z","author_association":"MEMBER","body":"I'll see if I can change that"}}
{"actor":{"display_login":"patrickbrouwers"}}