{"action":"created","issue":{"url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/274","labels_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/274/comments","events_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/274/events","html_url":"https://github.com/barryvdh/laravel-ide-helper/issues/274","id":112769916,"number":274,"title":"Auth::user resolves to wrong type","user":{"login":"tkuijer","id":1401811,"avatar_url":"https://avatars.githubusercontent.com/u/1401811?v=3","gravatar_id":"","url":"https://api.github.com/users/tkuijer","html_url":"https://github.com/tkuijer","followers_url":"https://api.github.com/users/tkuijer/followers","following_url":"https://api.github.com/users/tkuijer/following{/other_user}","gists_url":"https://api.github.com/users/tkuijer/gists{/gist_id}","starred_url":"https://api.github.com/users/tkuijer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkuijer/subscriptions","organizations_url":"https://api.github.com/users/tkuijer/orgs","repos_url":"https://api.github.com/users/tkuijer/repos","events_url":"https://api.github.com/users/tkuijer/events{/privacy}","received_events_url":"https://api.github.com/users/tkuijer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-22T10:02:10Z","updated_at":"2015-10-22T10:29:48Z","closed_at":null,"body":"In my project I have moved the normal `App\\User` to `Domain\\Models\\User` (Residing in the app\\Models folder). I also modified my auth configuration file to reflect this change. However the `ide-helper:generate` command doesn't pick up on this change and instead points the `Auth::user()` to the standard App\\User model"},"comment":{"url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/comments/150174132","html_url":"https://github.com/barryvdh/laravel-ide-helper/issues/274#issuecomment-150174132","issue_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/274","id":150174132,"user":{"login":"barryvdh","id":973269,"avatar_url":"https://avatars.githubusercontent.com/u/973269?v=3","gravatar_id":"","url":"https://api.github.com/users/barryvdh","html_url":"https://github.com/barryvdh","followers_url":"https://api.github.com/users/barryvdh/followers","following_url":"https://api.github.com/users/barryvdh/following{/other_user}","gists_url":"https://api.github.com/users/barryvdh/gists{/gist_id}","starred_url":"https://api.github.com/users/barryvdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barryvdh/subscriptions","organizations_url":"https://api.github.com/users/barryvdh/orgs","repos_url":"https://api.github.com/users/barryvdh/repos","events_url":"https://api.github.com/users/barryvdh/events{/privacy}","received_events_url":"https://api.github.com/users/barryvdh/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T10:29:48Z","updated_at":"2015-10-22T10:29:48Z","body":"@shehi Relax, nothing wrong with asking a question.\r\n\r\nSee the config file here: \r\nhttps://github.com/barryvdh/laravel-ide-helper/blob/master/config/ide-helper.php#L86\r\n\r\nIt should replace `\\Illuminate\\Contracts\\Auth\\Authenticatable` with `config('auth.model', 'App\\User'),`.\r\nIf `auth.model` is set, it should use that. But perhaps you have an old published config?\r\n\r\nYou are talking about the _ide_helper.php file, right?"}}