{"action":"created","issue":{"url":"https://api.github.com/repos/michaeljennings/carpenter/issues/6","labels_url":"https://api.github.com/repos/michaeljennings/carpenter/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/michaeljennings/carpenter/issues/6/comments","events_url":"https://api.github.com/repos/michaeljennings/carpenter/issues/6/events","html_url":"https://github.com/michaeljennings/carpenter/issues/6","id":119492162,"number":6,"title":"\"Undefined index: store\" when accessing Carpenter->config","user":{"login":"PiotrJander","id":9830206,"avatar_url":"https://avatars.githubusercontent.com/u/9830206?v=3","gravatar_id":"","url":"https://api.github.com/users/PiotrJander","html_url":"https://github.com/PiotrJander","followers_url":"https://api.github.com/users/PiotrJander/followers","following_url":"https://api.github.com/users/PiotrJander/following{/other_user}","gists_url":"https://api.github.com/users/PiotrJander/gists{/gist_id}","starred_url":"https://api.github.com/users/PiotrJander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PiotrJander/subscriptions","organizations_url":"https://api.github.com/users/PiotrJander/orgs","repos_url":"https://api.github.com/users/PiotrJander/repos","events_url":"https://api.github.com/users/PiotrJander/events{/privacy}","received_events_url":"https://api.github.com/users/PiotrJander/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T13:32:47Z","updated_at":"2015-12-01T22:38:42Z","closed_at":null,"body":"When I do\r\n\r\n```php\r\nCarpenter::add('manufacturers signups', ManufacturerSignupsTable::class);\r\n$table = Carpenter::get('manufacturers signups');\r\n```\r\n\r\nI get the error `Undefined index: store` in\r\n\r\n```php\r\n    protected function createStoreManager()\r\n    {\r\n        return new StoreManager($this->config['store'], $this->extensions['store']);\r\n    }\r\n```\r\n\r\nWhen I inspect the state of the `Carpenter` object just before the error occurs, I can see that its `config` attribute is empty.\r\n\r\nI think that I have valid configuration. I followed the instructions in [the documentation](http://carpenter.michaeljennings.im/getting-started) and exported settings using `php artisan config:publish michaeljennings/carpenter`.\r\n\r\nNote that the error is not specific to the index `store`. When I manage to bypass the problem by hardcoding the correct configuration values in the package code, I get similar error for indices `session`, `paginator`, and `view`.\r\n\r\nI use Laravel 4.2 "},"comment":{"url":"https://api.github.com/repos/michaeljennings/carpenter/issues/comments/161119483","html_url":"https://github.com/michaeljennings/carpenter/issues/6#issuecomment-161119483","issue_url":"https://api.github.com/repos/michaeljennings/carpenter/issues/6","id":161119483,"user":{"login":"michaeljennings","id":5189701,"avatar_url":"https://avatars.githubusercontent.com/u/5189701?v=3","gravatar_id":"","url":"https://api.github.com/users/michaeljennings","html_url":"https://github.com/michaeljennings","followers_url":"https://api.github.com/users/michaeljennings/followers","following_url":"https://api.github.com/users/michaeljennings/following{/other_user}","gists_url":"https://api.github.com/users/michaeljennings/gists{/gist_id}","starred_url":"https://api.github.com/users/michaeljennings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaeljennings/subscriptions","organizations_url":"https://api.github.com/users/michaeljennings/orgs","repos_url":"https://api.github.com/users/michaeljennings/repos","events_url":"https://api.github.com/users/michaeljennings/events{/privacy}","received_events_url":"https://api.github.com/users/michaeljennings/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T22:38:42Z","updated_at":"2015-12-01T22:38:42Z","body":"I've found the issue. \r\n\r\nI wasn't loading the config correctly in the laravel 4 service provider. It's been a while since I've worked with laravel 4 sorry.\r\n\r\nI'm working on a fix now and that will be in v1.0.3."}}