How do I send the password reset link to the users email when they click on password reset button.
I have a form
<form action="/company/password/reset/" method="POST">
{{ csrf_field() }}
<div class="row">
<div class="input-field col s12">
<input placeholder="Enter your email" id="emails" type="email" class="validate" required name="email">
<label for="emails">E-mail Address</label>
</div>
</div>
<p><button type="submit" method="post">SUBMIT</button></p>
</form>
Routes
Route::post('/password/company/reset/', 'PasswordResetController@company');
And controller
public function company($email)
{
$company = $request->email;
Password::sendResetLink(['email' => $company]);
}
It's not working right now, is this the correct way to do it??
I cannot find any tutorial covering reset password in laravel 5.4
I get this error:
User must implement CanResetPassword interface.