{"action":"created","issue":{"url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/168","labels_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/168/comments","events_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/168/events","html_url":"https://github.com/barryvdh/laravel-ide-helper/issues/168","id":57714616,"number":168,"title":"Laravel 5 Model query methods not working","user":{"login":"ttocskcaj","id":453862,"avatar_url":"https://avatars.githubusercontent.com/u/453862?v=3","gravatar_id":"","url":"https://api.github.com/users/ttocskcaj","html_url":"https://github.com/ttocskcaj","followers_url":"https://api.github.com/users/ttocskcaj/followers","following_url":"https://api.github.com/users/ttocskcaj/following{/other_user}","gists_url":"https://api.github.com/users/ttocskcaj/gists{/gist_id}","starred_url":"https://api.github.com/users/ttocskcaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttocskcaj/subscriptions","organizations_url":"https://api.github.com/users/ttocskcaj/orgs","repos_url":"https://api.github.com/users/ttocskcaj/repos","events_url":"https://api.github.com/users/ttocskcaj/events{/privacy}","received_events_url":"https://api.github.com/users/ttocskcaj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-15T02:16:44Z","updated_at":"2015-02-18T08:58:48Z","closed_at":null,"body":"Eloquent model methods like findOrFail() and where() are not working in Laravel 5.\r\nThese methods don't exist in the Model class so the IDE can't see them. The class uses __call() to create a Illuminate\\Database\\Eloquent\\Builder object where those methods exist.\r\nAdding `@method static \\Illuminate\\Database\\Query\\Builder|\\App\\Models\\ModelName findOrFail($value)` to the phpdoc lets the IDE know the methods are there.\r\nCan these be added to the docblock generated by the `artisan ide-helper:models` command?\r\n"},"comment":{"url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/comments/74832028","html_url":"https://github.com/barryvdh/laravel-ide-helper/issues/168#issuecomment-74832028","issue_url":"https://api.github.com/repos/barryvdh/laravel-ide-helper/issues/168","id":74832028,"user":{"login":"shehi","id":653569,"avatar_url":"https://avatars.githubusercontent.com/u/653569?v=3","gravatar_id":"","url":"https://api.github.com/users/shehi","html_url":"https://github.com/shehi","followers_url":"https://api.github.com/users/shehi/followers","following_url":"https://api.github.com/users/shehi/following{/other_user}","gists_url":"https://api.github.com/users/shehi/gists{/gist_id}","starred_url":"https://api.github.com/users/shehi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shehi/subscriptions","organizations_url":"https://api.github.com/users/shehi/orgs","repos_url":"https://api.github.com/users/shehi/repos","events_url":"https://api.github.com/users/shehi/events{/privacy}","received_events_url":"https://api.github.com/users/shehi/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T08:58:48Z","updated_at":"2015-02-18T08:58:48Z","body":"Thing is, I always do extend \\Eloquent. Never extended \\Models facade."}}