{"action":"created","issue":{"url":"https://api.github.com/repos/rappasoft/laravel-boilerplate-installer/issues/3","repository_url":"https://api.github.com/repos/rappasoft/laravel-boilerplate-installer","labels_url":"https://api.github.com/repos/rappasoft/laravel-boilerplate-installer/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rappasoft/laravel-boilerplate-installer/issues/3/comments","events_url":"https://api.github.com/repos/rappasoft/laravel-boilerplate-installer/issues/3/events","html_url":"https://github.com/rappasoft/laravel-boilerplate-installer/issues/3","id":168187210,"number":3,"title":"Config not updated when namespace is changed from App during install","user":{"login":"CoeusCC","id":2218833,"avatar_url":"https://avatars.githubusercontent.com/u/2218833?v=3","gravatar_id":"","url":"https://api.github.com/users/CoeusCC","html_url":"https://github.com/CoeusCC","followers_url":"https://api.github.com/users/CoeusCC/followers","following_url":"https://api.github.com/users/CoeusCC/following{/other_user}","gists_url":"https://api.github.com/users/CoeusCC/gists{/gist_id}","starred_url":"https://api.github.com/users/CoeusCC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoeusCC/subscriptions","organizations_url":"https://api.github.com/users/CoeusCC/orgs","repos_url":"https://api.github.com/users/CoeusCC/repos","events_url":"https://api.github.com/users/CoeusCC/events{/privacy}","received_events_url":"https://api.github.com/users/CoeusCC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-28T20:21:05Z","updated_at":"2016-07-28T20:54:08Z","closed_at":null,"body":"I don't know if this is actually an issue that could be resolved during installation or simply something that needs to be noted for users to do themselves, but when changing the default namespace (App) everything seems to work fine until you hit a route that touches the config files. For me it was my initial login and I found the following entries in the related config files:\r\n- [root]\\config\\access.php:\r\n   13:     'role' => App\\Models\\Access\\Role\\Role::class,\r\n   ..\r\n   24:     'permission' => App\\Models\\Access\\Permission\\Permission::class,\r\n\r\n- [root]\\config\\auth.php:\r\n   68          'users' => [\r\n   69              'driver' => 'eloquent',\r\n   70:             'model' => App\\Models\\Access\\User\\User::class,\r\n   71          ],\r\n- [root]\\config\\datatables.php:\r\n   68:         'model' => 'App\\Models',\r\n\r\n- [root]\\config\\services.php:\r\n   36      'stripe' => [\r\n   37:         'model'  => App\\Models\\Access\\User\\User::class,\r\n   38          'key'    => env('STRIPE_KEY'),\r\n   39          'secret' => env('STRIPE_SECRET'),\r\n\r\nThere were also a few in comments and other locations such as tests, but I'm not sure if it would be feasible or desirable to address them all. Here's a list of files for reference, but I've omitted the location for brevity:\r\n\r\n- [root]\\database\\seeds\\Access\\PermissionRoleSeeder.php:\r\n- [root]\\vendor\\hieu-le\\active\\tests\\ActiveTest.php:\r\n- [root]\\vendor\\laracasts\\generators\\readme.md:\r\n- [root]\\vendor\\laracasts\\generators\\src\\stubs\\seed.stub:\r\n- [root]\\vendor\\laravel\\socialite\\readme.md:\r\n- [root]\\vendor\\mockery\\mockery\\docs\\cookbook\\mocking_hard_dependencies.rst:\r\n- [root]\\vendor\\phpspec\\prophecy\\README.md:\r\n"},"comment":{"url":"https://api.github.com/repos/rappasoft/laravel-boilerplate-installer/issues/comments/236022041","html_url":"https://github.com/rappasoft/laravel-boilerplate-installer/issues/3#issuecomment-236022041","issue_url":"https://api.github.com/repos/rappasoft/laravel-boilerplate-installer/issues/3","id":236022041,"user":{"login":"rappasoft","id":6026504,"avatar_url":"https://avatars.githubusercontent.com/u/6026504?v=3","gravatar_id":"","url":"https://api.github.com/users/rappasoft","html_url":"https://github.com/rappasoft","followers_url":"https://api.github.com/users/rappasoft/followers","following_url":"https://api.github.com/users/rappasoft/following{/other_user}","gists_url":"https://api.github.com/users/rappasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/rappasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rappasoft/subscriptions","organizations_url":"https://api.github.com/users/rappasoft/orgs","repos_url":"https://api.github.com/users/rappasoft/repos","events_url":"https://api.github.com/users/rappasoft/events{/privacy}","received_events_url":"https://api.github.com/users/rappasoft/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T20:54:08Z","updated_at":"2016-07-28T20:54:08Z","body":"Anything in the vendor folder i'm not going to touch, they shouldn't have anything to do with it. I'm going to append to the class to fix those files."}}
{"actor":{"display_login":"rappasoft"}}