{"action":"created","issue":{"url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1920","repository_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel","labels_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1920/labels{/name}","comments_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1920/comments","events_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1920/events","html_url":"https://github.com/Maatwebsite/Laravel-Excel/issues/1920","id":384908275,"node_id":"MDU6SXNzdWUzODQ5MDgyNzU=","number":1920,"title":"Get parameter from controller in import class","user":{"login":"abdrozak20","id":33420123,"node_id":"MDQ6VXNlcjMzNDIwMTIz","avatar_url":"https://avatars2.githubusercontent.com/u/33420123?v=4","gravatar_id":"","url":"https://api.github.com/users/abdrozak20","html_url":"https://github.com/abdrozak20","followers_url":"https://api.github.com/users/abdrozak20/followers","following_url":"https://api.github.com/users/abdrozak20/following{/other_user}","gists_url":"https://api.github.com/users/abdrozak20/gists{/gist_id}","starred_url":"https://api.github.com/users/abdrozak20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abdrozak20/subscriptions","organizations_url":"https://api.github.com/users/abdrozak20/orgs","repos_url":"https://api.github.com/users/abdrozak20/repos","events_url":"https://api.github.com/users/abdrozak20/events{/privacy}","received_events_url":"https://api.github.com/users/abdrozak20/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-27T17:33:29Z","updated_at":"2018-12-06T10:37:12Z","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.1/getting-started/contributing)\r\nand Code Of Conduct (https://github.com/Maatwebsite/Laravel-Excel/blob/3.1/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 [QUESTION].\r\n\r\n-->\r\n\r\n### Prerequisites\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.7\r\n* Package version: 3.1\r\n\r\n### Description\r\n\r\n<!-- Describe your questions -->\r\nI wnat to get my parameters from $request in class import. what should i do ?\r\nthis is my controller\r\n![capture](https://user-images.githubusercontent.com/33420123/49099848-19223d00-f2a5-11e8-8b75-3de69d23e287.PNG)\r\n\r\nthis is my class import \r\n![capturea](https://user-images.githubusercontent.com/33420123/49099858-20e1e180-f2a5-11e8-8647-f1fb6a7d4af3.PNG)\r\n\r\n\r\n### Additional Information\r\n\r\nAny additional information, configuration or data that might be necessary to reproduce the issue.\r\n"},"comment":{"url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/comments/444827198","html_url":"https://github.com/Maatwebsite/Laravel-Excel/issues/1920#issuecomment-444827198","issue_url":"https://api.github.com/repos/Maatwebsite/Laravel-Excel/issues/1920","id":444827198,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDgyNzE5OA==","user":{"login":"RibikiH","id":14910920,"node_id":"MDQ6VXNlcjE0OTEwOTIw","avatar_url":"https://avatars0.githubusercontent.com/u/14910920?v=4","gravatar_id":"","url":"https://api.github.com/users/RibikiH","html_url":"https://github.com/RibikiH","followers_url":"https://api.github.com/users/RibikiH/followers","following_url":"https://api.github.com/users/RibikiH/following{/other_user}","gists_url":"https://api.github.com/users/RibikiH/gists{/gist_id}","starred_url":"https://api.github.com/users/RibikiH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RibikiH/subscriptions","organizations_url":"https://api.github.com/users/RibikiH/orgs","repos_url":"https://api.github.com/users/RibikiH/repos","events_url":"https://api.github.com/users/RibikiH/events{/privacy}","received_events_url":"https://api.github.com/users/RibikiH/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T10:37:12Z","updated_at":"2018-12-06T10:37:12Z","author_association":"NONE","body":"Hi\r\nIn Controller\r\n`\r\n$data = Excel::toArray(new FileImport($request->month), $file);\r\n`\r\nand in Import class\r\n\r\nnamespace App\\Imports;\r\n\r\nclass OrderImport extends BaseImport\r\n{\r\n    protected $_month = null;\r\n\r\n    public function __construct($month) {\r\n       $_month = $month;\r\n    }\r\n\r\n    public function model(array $row) {\r\n        $m = $this->_month;\r\n    }\r\n}\r\n"}}
{"actor":{"display_login":"RibikiH"}}