{"action":"created","issue":{"url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/400","labels_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/400/labels{/name}","comments_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/400/comments","events_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/400/events","html_url":"https://github.com/Maatwebsite/Laravel-Excel/issues/400","id":69616175,"number":400,"title":"Default Properties not applied (v. 1.3.0 with Laravel 4.2.17)","user":{"login":"takemaru-hirai","id":7474108,"avatar_url":"https://avatars.githubusercontent.com/u/7474108?v=3","gravatar_id":"","url":"https://api.github.com/users/takemaru-hirai","html_url":"https://github.com/takemaru-hirai","followers_url":"https://api.github.com/users/takemaru-hirai/followers","following_url":"https://api.github.com/users/takemaru-hirai/following{/other_user}","gists_url":"https://api.github.com/users/takemaru-hirai/gists{/gist_id}","starred_url":"https://api.github.com/users/takemaru-hirai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takemaru-hirai/subscriptions","organizations_url":"https://api.github.com/users/takemaru-hirai/orgs","repos_url":"https://api.github.com/users/takemaru-hirai/repos","events_url":"https://api.github.com/users/takemaru-hirai/events{/privacy}","received_events_url":"https://api.github.com/users/takemaru-hirai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-20T15:41:42Z","updated_at":"2015-04-23T06:41:26Z","closed_at":null,"body":"After I followed your Getting Started document,\r\n\r\nhttp://www.maatwebsite.nl/laravel-excel/docs/getting-started \r\n\r\nI wrote this code in my controller trying to download a newly created empty xlsx file,\r\n\r\n```php\r\nExcel::create('test', function($excel){\r\n    $excel->sheet('Excel sheet', function($sheet) {\r\n         $sheet->setOrientation('landscape');\r\n    });\r\n})->export('xlsx');\r\n```\r\nand it succeeded, but the xlsx file **doesn't contain any properties** such as creator, company, title etc defined in **app/config/packages/maatwebsite/excel/config.php**. For example, the creator of file was shown in my MS Excel as  \"Unknown Creator.\"\r\n\r\nBut when I defined each properties by setXxx methods,\r\n\r\n```php\r\nExcel::create('test', function($excel){\r\n    $excel->setCreator('me');\r\n    $excel->sheet('Excel sheet', function($sheet) {\r\n         $sheet->setOrientation('landscape');\r\n    });\r\n})->export('xlsx');\r\n```\r\n\r\nit worked fine.\r\n\r\nMore simple code such as below\r\n\r\n```php\r\nExcel::create('test', function($excel){\r\n\r\n})->export('xlsx');\r\n```\r\nexports the broken xlsx file, I guess because no sheets were added.\r\n\r\nIt seems that the definition of default properties in my **config.php** never applied. I found  \"setDefaultProperties\" method in the PHPExcel Class not called at all when I set a breakpoint and watched.\r\n\r\nhttps://github.com/Maatwebsite/Laravel-Excel/blob/1.3/src/Maatwebsite/Excel/Classes/PHPExcel.php#L71\r\n\r\nPlease tell me if something wrong in my steps, or is this a correct behavior?\r\n\r\nThank you.\r\n"},"comment":{"url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/comments/95462904","html_url":"https://github.com/Maatwebsite/Laravel-Excel/issues/400#issuecomment-95462904","issue_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/400","id":95462904,"user":{"login":"takemaru-hirai","id":7474108,"avatar_url":"https://avatars.githubusercontent.com/u/7474108?v=3","gravatar_id":"","url":"https://api.github.com/users/takemaru-hirai","html_url":"https://github.com/takemaru-hirai","followers_url":"https://api.github.com/users/takemaru-hirai/followers","following_url":"https://api.github.com/users/takemaru-hirai/following{/other_user}","gists_url":"https://api.github.com/users/takemaru-hirai/gists{/gist_id}","starred_url":"https://api.github.com/users/takemaru-hirai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takemaru-hirai/subscriptions","organizations_url":"https://api.github.com/users/takemaru-hirai/orgs","repos_url":"https://api.github.com/users/takemaru-hirai/repos","events_url":"https://api.github.com/users/takemaru-hirai/events{/privacy}","received_events_url":"https://api.github.com/users/takemaru-hirai/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T06:41:26Z","updated_at":"2015-04-23T06:41:26Z","body":"Okay. Thanks."}}