{"action":"opened","issue":{"url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1701","repository_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel","labels_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1701/labels{/name}","comments_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1701/comments","events_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1701/events","html_url":"https://github.com/Maatwebsite/Laravel-Excel/issues/1701","id":335495384,"node_id":"MDU6SXNzdWUzMzU0OTUzODQ=","number":1701,"title":"[BUG] Method styleCells does not exist.","user":{"login":"diegocam","id":4230798,"node_id":"MDQ6VXNlcjQyMzA3OTg=","avatar_url":"https://avatars2.githubusercontent.com/u/4230798?v=4","gravatar_id":"","url":"https://api.github.com/users/diegocam","html_url":"https://github.com/diegocam","followers_url":"https://api.github.com/users/diegocam/followers","following_url":"https://api.github.com/users/diegocam/following{/other_user}","gists_url":"https://api.github.com/users/diegocam/gists{/gist_id}","starred_url":"https://api.github.com/users/diegocam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegocam/subscriptions","organizations_url":"https://api.github.com/users/diegocam/orgs","repos_url":"https://api.github.com/users/diegocam/repos","events_url":"https://api.github.com/users/diegocam/events{/privacy}","received_events_url":"https://api.github.com/users/diegocam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-25T17:16:35Z","updated_at":"2018-06-25T17:16:35Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n\r\nPLEASE READ: FILLING IN THE TEMPLATE IS REQUIRED!\r\nIssues that do not include enough information might not be picked up.\r\n\r\nHave you read Laravel-Excel's \r\ncontributing guidelines (https://laravel-excel.maatwebsite.nl/docs/3.0/getting-started/contributing)\r\nand Code Of Conduct (https://github.com/Maatwebsite/Laravel-Excel/blob/3.0/CODE_OF_CONDUCT.md)?\r\nBy filing an Issue, you are expected to comply with it, including treating everyone with respect.\r\n\r\nPlease prefix your issue with one of the following: [BUG] [PROPOSAL] [QUESTION].\r\n\r\n-->\r\n\r\n### Prerequisites\r\n\r\n<!--\r\n\r\nPut an X between the brackets if you have done the following:\r\n\r\n-->\r\n\r\n* [x] Able to reproduce the behaviour outside of your code, the problem is isolated to Laravel Excel.\r\n* [x] Checked that your issue isn't already filed.\r\n* [x] Checked if no PR was submitted that fixes this problem.\r\n\r\n### Versions\r\n\r\n<!-- Please be as exact and complete as possible when proving version numbers -->\r\n\r\n* PHP version: 7.2\r\n* Laravel version: 5.5\r\n* Package version: 3.0\r\n\r\n### Description\r\nI'm trying to setup simple border styling on one cell following the documentation here https://laravel-excel.maatwebsite.nl/docs/3.0/export/extending . My code is basically a copy of what I found on the docs:\r\n```\r\n\r\nnamespace App\\Exports;\r\n\r\nuse Illuminate\\Contracts\\View\\View;\r\nuse Maatwebsite\\Excel\\Concerns\\Exportable;\r\nuse Maatwebsite\\Excel\\Concerns\\FromView;\r\nuse Maatwebsite\\Excel\\Concerns\\WithEvents;\r\nuse Maatwebsite\\Excel\\Events\\AfterSheet;\r\n\r\nclass ReportExport implements FromView, WithEvents\r\n{\r\n    use Exportable;\r\n\r\n    public function registerEvents(): array\r\n    {\r\n        return [\r\n            AfterSheet::class => function (AfterSheet $event) {\r\n                $event->sheet->styleCells(\r\n                    'B2:G8',\r\n                    [\r\n                        'borders' => [\r\n                            'outline' => [\r\n                                'borderStyle' => \\PhpOffice\\PhpSpreadsheet\\Style\\Border::BORDER_THICK,\r\n                                'color'       => ['argb' => 'FFFF0000'],\r\n                            ],\r\n                        ]\r\n                    ]\r\n                );\r\n            },\r\n        ];\r\n    }\r\n```\r\n\r\nBut unfortunately it produces this error: \r\n\r\n```\r\nMethod styleCells does not exist.\r\n```\r\n\r\nI tried doing a search for `styleCells` in your codebase, but I was not able to find it.\r\n\r\nHas this method been removed? If so, are the docs outdated? Am I doing something wrong?\r\n<!-- Describe the issue -->\r\n"}}
{"actor":{"display_login":"diegocam"}}