{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/7440","labels_url":"https://api.github.com/repos/laravel/framework/issues/7440/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/7440/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/7440/events","html_url":"https://github.com/laravel/framework/pull/7440","id":57733421,"number":7440,"title":"Allow config to be stored in subdirs","user":{"login":"antonioribeiro","id":3182864,"avatar_url":"https://avatars.githubusercontent.com/u/3182864?v=3","gravatar_id":"","url":"https://api.github.com/users/antonioribeiro","html_url":"https://github.com/antonioribeiro","followers_url":"https://api.github.com/users/antonioribeiro/followers","following_url":"https://api.github.com/users/antonioribeiro/following{/other_user}","gists_url":"https://api.github.com/users/antonioribeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/antonioribeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonioribeiro/subscriptions","organizations_url":"https://api.github.com/users/antonioribeiro/orgs","repos_url":"https://api.github.com/users/antonioribeiro/repos","events_url":"https://api.github.com/users/antonioribeiro/events{/privacy}","received_events_url":"https://api.github.com/users/antonioribeiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-15T15:15:33Z","updated_at":"2015-02-15T16:04:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/7440","html_url":"https://github.com/laravel/framework/pull/7440","diff_url":"https://github.com/laravel/framework/pull/7440.diff","patch_url":"https://github.com/laravel/framework/pull/7440.patch"},"body":"Is not currently possible to store configuration in subdirs, so if we do \r\n\r\n    $this->publishes([\r\n        __DIR__.'/path/to/config/courier.php' => config_path('vendorname/courier/rules.php'),\r\n    ]);\r\n\r\nWe will have to access configuration for the package doing:\r\n\r\n    $rulesAreEnabled = $this->app['config']->get('rules.enabled');\r\n\r\nAnd NOT as it should be:\r\n\r\n    $rulesAreEnabled = $this->app['config']->get('vendorname.courier.rules.enabled');\r\n\r\nThis PR fix this."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/74423234","html_url":"https://github.com/laravel/framework/pull/7440#issuecomment-74423234","issue_url":"https://api.github.com/repos/laravel/framework/issues/7440","id":74423234,"user":{"login":"antonioribeiro","id":3182864,"avatar_url":"https://avatars.githubusercontent.com/u/3182864?v=3","gravatar_id":"","url":"https://api.github.com/users/antonioribeiro","html_url":"https://github.com/antonioribeiro","followers_url":"https://api.github.com/users/antonioribeiro/followers","following_url":"https://api.github.com/users/antonioribeiro/following{/other_user}","gists_url":"https://api.github.com/users/antonioribeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/antonioribeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonioribeiro/subscriptions","organizations_url":"https://api.github.com/users/antonioribeiro/orgs","repos_url":"https://api.github.com/users/antonioribeiro/repos","events_url":"https://api.github.com/users/antonioribeiro/events{/privacy}","received_events_url":"https://api.github.com/users/antonioribeiro/received_events","type":"User","site_admin":false},"created_at":"2015-02-15T16:04:56Z","updated_at":"2015-02-15T16:04:56Z","body":"Just to make it clearer: there will be no problem in publishing the configuration files, IF we are using subfolders for our packages, but having another package with the same config basename (in a subfolder or not, doesn't matter because Laravel ignores those folders) it's a dangerous conflict.\r\n\r\nI'm okay with it this way for now. I'll name the file the way it does not conflict with others, I hope."}}