mercredi 21 juin 2017

Use Auth/ResetPasswords in laravel

I have a PasswordController in /Controllers/Auth/PasswordController.php:

use Illuminate\Foundation\Auth\ResetsPasswords;

class PasswordController extends Controller {

    use ResetsPasswords;
     ............
}

ResetPasswords has all the functionalities like getEmail, postEmail for resetting password.

public function getEmail()
{
    return view('auth.password');
}

I created a route:

Route::get('/email', 'Auth\PasswordController@email');

but its not working. Its throwing exception:

at Controller->missingMethod('password/reset')

How can I access this built-in reset password view provided by laravel ?

I am using laravel 5.0xx.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2sTrpe0
via IFTTT

Aucun commentaire:

Enregistrer un commentaire