{"action":"created","issue":{"url":"https://api.github.com/repos/analogueorm/laravel-auth/issues/3","labels_url":"https://api.github.com/repos/analogueorm/laravel-auth/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/analogueorm/laravel-auth/issues/3/comments","events_url":"https://api.github.com/repos/analogueorm/laravel-auth/issues/3/events","html_url":"https://github.com/analogueorm/laravel-auth/issues/3","id":106946051,"number":3,"title":"Method firstByAttributes doesn't exist","user":{"login":"gpassarelli","id":1556169,"avatar_url":"https://avatars.githubusercontent.com/u/1556169?v=3","gravatar_id":"","url":"https://api.github.com/users/gpassarelli","html_url":"https://github.com/gpassarelli","followers_url":"https://api.github.com/users/gpassarelli/followers","following_url":"https://api.github.com/users/gpassarelli/following{/other_user}","gists_url":"https://api.github.com/users/gpassarelli/gists{/gist_id}","starred_url":"https://api.github.com/users/gpassarelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpassarelli/subscriptions","organizations_url":"https://api.github.com/users/gpassarelli/orgs","repos_url":"https://api.github.com/users/gpassarelli/repos","events_url":"https://api.github.com/users/gpassarelli/events{/privacy}","received_events_url":"https://api.github.com/users/gpassarelli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-17T09:33:48Z","updated_at":"2015-09-17T11:22:02Z","closed_at":"2015-09-17T11:02:07Z","body":"Hi there, firtst of all I would like to congrat you for the awesome package that Analogue is, I've started using and I loved it.\r\n\r\nBut after getting your laravel-auth repo I notice that I your are calling a functionon the file **AnalogueUserProvider.php** for the repository that doesn't exist anymore, maybe on a previous version on Analogue.\r\n\r\nThe function **retrieveByCredentials** calls the method *firstByAttributes* of the repository on the return, but the repository doesn't have this function. \r\n\r\nSo I needed to update the return to use the function *firstMatching* of the repository. So the function **retrieveByCredentials** it will be like this:\r\n```php\r\n    /**\r\n     * Retrieve a user by the given credentials.\r\n     *\r\n     * @param  array $credentials\r\n     * @return UserInterface|null\r\n     */\r\n    public function retrieveByCredentials(array $credentials)\r\n    {\r\n        $criteria = [];\r\n        foreach ($credentials as $key => $value)\r\n            if ( ! str_contains($key, 'password'))\r\n                $criteria[$key] = $value;\r\n\r\n        return $this->getRepository()->firstMatching($criteria);\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/analogueorm/laravel-auth/issues/comments/141048084","html_url":"https://github.com/analogueorm/laravel-auth/issues/3#issuecomment-141048084","issue_url":"https://api.github.com/repos/analogueorm/laravel-auth/issues/3","id":141048084,"user":{"login":"gpassarelli","id":1556169,"avatar_url":"https://avatars.githubusercontent.com/u/1556169?v=3","gravatar_id":"","url":"https://api.github.com/users/gpassarelli","html_url":"https://github.com/gpassarelli","followers_url":"https://api.github.com/users/gpassarelli/followers","following_url":"https://api.github.com/users/gpassarelli/following{/other_user}","gists_url":"https://api.github.com/users/gpassarelli/gists{/gist_id}","starred_url":"https://api.github.com/users/gpassarelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpassarelli/subscriptions","organizations_url":"https://api.github.com/users/gpassarelli/orgs","repos_url":"https://api.github.com/users/gpassarelli/repos","events_url":"https://api.github.com/users/gpassarelli/events{/privacy}","received_events_url":"https://api.github.com/users/gpassarelli/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T11:22:02Z","updated_at":"2015-09-17T11:22:02Z","body":"Nice, looking forward to hear from you."}}