{"action":"opened","issue":{"url":"https://api.github.com/repos/Xethron/migrations-generator/issues/164","repository_url":"https://api.github.com/repos/Xethron/migrations-generator","labels_url":"https://api.github.com/repos/Xethron/migrations-generator/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/Xethron/migrations-generator/issues/164/comments","events_url":"https://api.github.com/repos/Xethron/migrations-generator/issues/164/events","html_url":"https://github.com/Xethron/migrations-generator/issues/164","id":327177356,"number":164,"title":"Error: Class 'Config' not found","user":{"login":"mfn","id":87493,"avatar_url":"https://avatars0.githubusercontent.com/u/87493?v=4","gravatar_id":"","url":"https://api.github.com/users/mfn","html_url":"https://github.com/mfn","followers_url":"https://api.github.com/users/mfn/followers","following_url":"https://api.github.com/users/mfn/following{/other_user}","gists_url":"https://api.github.com/users/mfn/gists{/gist_id}","starred_url":"https://api.github.com/users/mfn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfn/subscriptions","organizations_url":"https://api.github.com/users/mfn/orgs","repos_url":"https://api.github.com/users/mfn/repos","events_url":"https://api.github.com/users/mfn/events{/privacy}","received_events_url":"https://api.github.com/users/mfn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-29T05:47:07Z","updated_at":"2018-05-29T05:47:07Z","closed_at":null,"author_association":"NONE","body":"I'm using this in a stripped down project which has disabled unused stuff. Most Facades are disabled, so is `Config`.\r\n\r\nA package should't rely on Facades as they application specific/optional.\r\n\r\nThe solution is to properly get the `config` service from the container and access it that way.\r\n\r\nStacktrace:\r\n```\r\n$ php artisan migrate:generate\r\nUsing connection: main\r\n\r\nGenerating migrations for: …\r\n\r\n Do you want to log these migrations in the migrations table? [Y/n] :\r\n > n\r\n\r\nSetting up Tables and Index Migrations\r\n\r\n   Symfony\\Component\\Debug\\Exception\\FatalThrowableError  : Class 'Config' not found\r\n\r\n  at /vagrant/api.dev/vendor/xethron/laravel-4-generators/src/Way/Generators/Commands/GeneratorCommand.php: 87\r\n  83:     protected function getPathByOptionOrConfig($option, $configName)\r\n  84:     {\r\n  85:         if ($path = $this->option($option)) return $path;\r\n  86:\r\n  87:         return Config::get(\"generators.config.{$configName}\");\r\n  88:     }\r\n  89:\r\n  90:     /**\r\n  91:      * Get the console command options.\r\n  92:      *\r\n\r\n  Exception trace:\r\n\r\n  1   Way\\Generators\\Commands\\GeneratorCommand::getPathByOptionOrConfig(\"path\", \"migration_target_path\")\r\n      /vagrant/api.dev/vendor/xethron/migrations-generator/src/Xethron/MigrationsGenerator/MigrateGenerateCommand.php : 292\r\n\r\n  2   Xethron\\MigrationsGenerator\\MigrateGenerateCommand::getFileGenerationPath()\r\n      /vagrant/api.dev/vendor/xethron/laravel-4-generators/src/Way/Generators/Commands/GeneratorCommand.php : 57\r\n\r\n  Please use the argument -v to see more details.\r\n```"}}
{"actor":{"display_login":"mfn"}}