{"action":"created","issue":{"url":"https://api.github.com/repos/andersao/l5-repository/issues/122","labels_url":"https://api.github.com/repos/andersao/l5-repository/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/andersao/l5-repository/issues/122/comments","events_url":"https://api.github.com/repos/andersao/l5-repository/issues/122/events","html_url":"https://github.com/andersao/l5-repository/issues/122","id":125840303,"number":122,"title":"Not Found Exceptions","user":{"login":"mrbarde","id":3317665,"avatar_url":"https://avatars.githubusercontent.com/u/3317665?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbarde","html_url":"https://github.com/mrbarde","followers_url":"https://api.github.com/users/mrbarde/followers","following_url":"https://api.github.com/users/mrbarde/following{/other_user}","gists_url":"https://api.github.com/users/mrbarde/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbarde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbarde/subscriptions","organizations_url":"https://api.github.com/users/mrbarde/orgs","repos_url":"https://api.github.com/users/mrbarde/repos","events_url":"https://api.github.com/users/mrbarde/events{/privacy}","received_events_url":"https://api.github.com/users/mrbarde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-10T19:37:09Z","updated_at":"2016-01-10T21:26:03Z","closed_at":null,"body":"So in my controller I wanted to find a user and i did the following\r\n`$user = $this->model->find($id);`\r\nBut unfortunate for me I get the following error\r\n*NotFoundHttpException in Handler.php line 102:*\r\n*No query results for model [<Vendor>\\<Package>\\Models\\User].*\r\nBut i would like to receive the empty result and then return mine since i'm building an API.\r\nHow to I get past the exception?"},"comment":{"url":"https://api.github.com/repos/andersao/l5-repository/issues/comments/170395832","html_url":"https://github.com/andersao/l5-repository/issues/122#issuecomment-170395832","issue_url":"https://api.github.com/repos/andersao/l5-repository/issues/122","id":170395832,"user":{"login":"mrbarde","id":3317665,"avatar_url":"https://avatars.githubusercontent.com/u/3317665?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbarde","html_url":"https://github.com/mrbarde","followers_url":"https://api.github.com/users/mrbarde/followers","following_url":"https://api.github.com/users/mrbarde/following{/other_user}","gists_url":"https://api.github.com/users/mrbarde/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbarde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbarde/subscriptions","organizations_url":"https://api.github.com/users/mrbarde/orgs","repos_url":"https://api.github.com/users/mrbarde/repos","events_url":"https://api.github.com/users/mrbarde/events{/privacy}","received_events_url":"https://api.github.com/users/mrbarde/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T21:26:03Z","updated_at":"2016-01-10T21:26:03Z","body":"So i dicidde to try `$user = $this->model->findWhere([\"id\" => $id]); and it worked perfectly, for what i wanted."}}