{"action":"created","issue":{"url":"https://api.github.com/repos/ollieread/multiauth/issues/106","labels_url":"https://api.github.com/repos/ollieread/multiauth/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/ollieread/multiauth/issues/106/comments","events_url":"https://api.github.com/repos/ollieread/multiauth/issues/106/events","html_url":"https://github.com/ollieread/multiauth/issues/106","id":105450079,"number":106,"title":"Argument 1 passed to Ollieread\\Multiauth\\Reminders\\PasswordBrokerManager::__construct() must be an instance of Ollieread\\Multiauth\\Reminders\\ReminderRepositoryInterface, instance of Illuminate\\Auth\\Reminders\\DatabaseReminderRepository given","user":{"login":"mh-jamil","id":10434700,"avatar_url":"https://avatars.githubusercontent.com/u/10434700?v=3","gravatar_id":"","url":"https://api.github.com/users/mh-jamil","html_url":"https://github.com/mh-jamil","followers_url":"https://api.github.com/users/mh-jamil/followers","following_url":"https://api.github.com/users/mh-jamil/following{/other_user}","gists_url":"https://api.github.com/users/mh-jamil/gists{/gist_id}","starred_url":"https://api.github.com/users/mh-jamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mh-jamil/subscriptions","organizations_url":"https://api.github.com/users/mh-jamil/orgs","repos_url":"https://api.github.com/users/mh-jamil/repos","events_url":"https://api.github.com/users/mh-jamil/events{/privacy}","received_events_url":"https://api.github.com/users/mh-jamil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-08T19:09:15Z","updated_at":"2015-09-09T13:19:27Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to integrate multiauth for my L-4.2 project for first time. Everything seems to work fine but the reminders aren't working. When I enter the email address in password/remind page and submit, it gives me an error:\r\n\r\n```\r\n Argument 1 passed to Ollieread\\Multiauth\\Reminders\\PasswordBrokerManager::__construct() must be an instance of Ollieread\\Multiauth\\Reminders\\ReminderRepositoryInterface, instance of Illuminate\\Auth\\Reminders\\DatabaseReminderRepository given, called in D:\\....\\vendor\\ollieread\\multiauth\\src\\Ollieread\\Multiauth\\Reminders\\ReminderServiceProvider.php on line 59 and defined \r\n```\r\n\r\nYou can view complete error details here: \r\n\r\n![error](https://cloud.githubusercontent.com/assets/10434700/9744642/8dc0aad4-5686-11e5-8ae7-0764971cbca1.png)\r\n\r\nMy Admin Controller:\r\n\r\n```\r\nuse Illuminate\\Auth\\UserTrait;\r\nuse Illuminate\\Auth\\UserInterface;\r\nuse Illuminate\\Auth\\Reminders\\RemindableTrait;\r\nuse Illuminate\\Auth\\Reminders\\RemindableInterface;\r\n\r\nclass Admin extends Eloquent implements UserInterface, RemindableInterface {\r\n\r\n\tuse UserTrait, RemindableTrait;\r\n\r\n\t/**\r\n\t * The database table used by the model.\r\n\t *\r\n\t * @var string\r\n\t */\r\n\tprotected $table = 'admins';\r\n\r\n\t/**\r\n\t * The attributes excluded from the model's JSON form.\r\n\t *\r\n\t * @var array\r\n\t */\r\n\tprotected $hidden = array('password', 'remember_token');\r\n\r\n\t// fillable array\r\n\tprotected $fillable = array('name', 'email', 'password');\r\n\r\n\t// validation rules\r\n\tpublic static $rules = array(\r\n\t\t'name' \t\t\t\t\t\t=> 'required|min:2', // alpha = only alphabets\r\n\t\t'email' \t\t\t\t\t=> 'required|email|unique:admins', // unique in admins table\r\n\t\t'password' \t\t\t\t\t=> 'required|between:8,20|confirmed',\r\n\t\t'password_confirmation' \t=> 'required|between:8,20'\r\n\t);\r\n}\r\n```\r\n\r\n**AdminRemindersController**\r\n\r\n```\r\nclass AdminRemindersController extends Controller {\r\n\r\n\t/**\r\n\t * Display the password reminder view.\r\n\t *\r\n\t * @return Response\r\n\t */\r\n\tpublic function getRemind()\r\n\t{\r\n\t\treturn View::make('admin.password.remind');\r\n\t}\r\n\r\n\t/**\r\n\t * Handle a POST request to remind a user of their password.\r\n\t *\r\n\t * @return Response\r\n\t */\r\n\tpublic function postRemind()\r\n\t{\r\n\t\t$response = Password::admin()->remind(Input::only('email'), function($message)\r\n\t\t{\r\n\t\t    $message->subject('Password Reminder');\r\n\t\t});\r\n\r\n\t\tswitch ($response)\r\n\t\t{\r\n\t\t\tcase Password::INVALID_USER:\r\n\t\t\t\treturn Redirect::back()\r\n\t\t\t\t\t->with('message', Lang::get($response))\r\n\t\t\t\t\t->with('message-type', 'alert-danger');\r\n\r\n\t\t\tcase Password::REMINDER_SENT:\r\n\t\t\t\treturn Redirect::back()\r\n\t\t\t\t\t->with('message', Lang::get($response))\r\n\t\t\t\t\t->with('message-type', 'alert-success');\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Display the password reset view for the given token.\r\n\t *\r\n\t * @param  string  $token\r\n\t * @return Response\r\n\t */\r\n\tpublic function getReset($token = null)\r\n\t{\r\n\t\tif (is_null($token)) App::abort(404);\r\n\r\n\t\treturn View::make('admin.password.reset')->with('token', $token);\r\n\t}\r\n\r\n\t/**\r\n\t * Handle a POST request to reset a user's password.\r\n\t *\r\n\t * @return Response\r\n\t */\r\n\tpublic function postReset()\r\n\t{\r\n\t\t$credentials = Input::only(\r\n\t\t\t'email', 'password', 'password_confirmation', 'token'\r\n\t\t);\r\n\r\n\t\t$response = Password::admin()->reset($credentials, function($user, $password)\r\n\t\t{\r\n\t\t\t$user->password = Hash::make($password);\r\n\r\n\t\t\t$user->save();\r\n\t\t});\r\n\r\n\t\tswitch ($response)\r\n\t\t{\r\n\t\t\tcase Password::INVALID_PASSWORD:\r\n\t\t\tcase Password::INVALID_TOKEN:\r\n\t\t\tcase Password::INVALID_USER:\r\n\t\t\t\treturn Redirect::back()->with('error', Lang::get($response));\r\n\r\n\t\t\tcase Password::PASSWORD_RESET:\r\n\t\t\t\treturn Redirect::to('admin.login')\r\n\t\t\t\t\t\t\t->with('message', 'Password changed successfully.')\r\n\t\t\t\t\t\t\t->with('message-type', 'alert-success');\r\n\t\t}\r\n\t}\r\n\r\n}\r\n```\r\n\r\nPlease help."},"comment":{"url":"https://api.github.com/repos/ollieread/multiauth/issues/comments/138906695","html_url":"https://github.com/ollieread/multiauth/issues/106#issuecomment-138906695","issue_url":"https://api.github.com/repos/ollieread/multiauth/issues/106","id":138906695,"user":{"login":"mh-jamil","id":10434700,"avatar_url":"https://avatars.githubusercontent.com/u/10434700?v=3","gravatar_id":"","url":"https://api.github.com/users/mh-jamil","html_url":"https://github.com/mh-jamil","followers_url":"https://api.github.com/users/mh-jamil/followers","following_url":"https://api.github.com/users/mh-jamil/following{/other_user}","gists_url":"https://api.github.com/users/mh-jamil/gists{/gist_id}","starred_url":"https://api.github.com/users/mh-jamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mh-jamil/subscriptions","organizations_url":"https://api.github.com/users/mh-jamil/orgs","repos_url":"https://api.github.com/users/mh-jamil/repos","events_url":"https://api.github.com/users/mh-jamil/events{/privacy}","received_events_url":"https://api.github.com/users/mh-jamil/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T13:19:27Z","updated_at":"2015-09-09T13:19:27Z","body":"I'm using Laravel 4.2 and I have required \"ollieread/multiauth\": \"dev-master\" in my composer.json file"}}