{"action":"created","issue":{"url":"https://api.github.com/repos/jorenvh/Blogify/issues/8","labels_url":"https://api.github.com/repos/jorenvh/Blogify/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/jorenvh/Blogify/issues/8/comments","events_url":"https://api.github.com/repos/jorenvh/Blogify/issues/8/events","html_url":"https://github.com/jorenvh/Blogify/issues/8","id":92956776,"number":8,"title":"Seed Fails If App Namespace Is Already Set","user":{"login":"mikebronner","id":1791050,"avatar_url":"https://avatars.githubusercontent.com/u/1791050?v=3","gravatar_id":"","url":"https://api.github.com/users/mikebronner","html_url":"https://github.com/mikebronner","followers_url":"https://api.github.com/users/mikebronner/followers","following_url":"https://api.github.com/users/mikebronner/following{/other_user}","gists_url":"https://api.github.com/users/mikebronner/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebronner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebronner/subscriptions","organizations_url":"https://api.github.com/users/mikebronner/orgs","repos_url":"https://api.github.com/users/mikebronner/repos","events_url":"https://api.github.com/users/mikebronner/events{/privacy}","received_events_url":"https://api.github.com/users/mikebronner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-04T01:12:13Z","updated_at":"2015-07-05T16:52:25Z","closed_at":null,"body":"The problem is that the seed class references `App/User`. Instead you will want to get the config variable, like so:\r\n\r\n```\r\n    public function run()\r\n    {\r\n        $user = App::make(Config::get('auth.model'));\r\n        $user->create([\r\n            'hash'          => blogify()->makeHash('users', 'hash', true),\r\n            'lastname'          => $this->admin['name'],\r\n            'firstname'     => $this->admin['firstname'],\r\n            'username'      => $this->admin['username'],\r\n            'email'         => $this->admin['email'],\r\n            'password'      => Hash::make($this->admin['password']),\r\n            'role_id'       => $this->admin_role,\r\n            'created_at'    => Carbon::now(),\r\n            'updated_at'    => Carbon::now()\r\n        ]);\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/jorenvh/Blogify/issues/comments/118638035","html_url":"https://github.com/jorenvh/Blogify/issues/8#issuecomment-118638035","issue_url":"https://api.github.com/repos/jorenvh/Blogify/issues/8","id":118638035,"user":{"login":"mikebronner","id":1791050,"avatar_url":"https://avatars.githubusercontent.com/u/1791050?v=3","gravatar_id":"","url":"https://api.github.com/users/mikebronner","html_url":"https://github.com/mikebronner","followers_url":"https://api.github.com/users/mikebronner/followers","following_url":"https://api.github.com/users/mikebronner/following{/other_user}","gists_url":"https://api.github.com/users/mikebronner/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebronner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebronner/subscriptions","organizations_url":"https://api.github.com/users/mikebronner/orgs","repos_url":"https://api.github.com/users/mikebronner/repos","events_url":"https://api.github.com/users/mikebronner/events{/privacy}","received_events_url":"https://api.github.com/users/mikebronner/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T16:52:25Z","updated_at":"2015-07-05T16:52:25Z","body":"There are various references to the `App` namespace throughout the package. Instead of extending the `App\\Controllers\\Controller` it might be better to include the vanilla controller in your plugin directly, thus you don't need to rely on the `App` namespace, or hope that the underlying project doesn't have an altered vanilla Controller class."}}