03.12.2015 Views

laravel4cookbook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Authentication 26<br />

1 Route::any("/request", [<br />

2 "as" => "user/request",<br />

3 "uses" => "UserController@request"<br />

4 ]);<br />

5<br />

6 Route::any("/reset/{token}", [<br />

7 "as" => "user/reset",<br />

8 "uses" => "UserController@reset"<br />

9 ]);<br />

.<br />

This was extracted from app/routes.php.<br />

Remember; the request route is for requesting a reset token, and the reset route is for resetting a<br />

password. We also need to generate the password reset tokens table; using artisan.<br />

1 php artisan auth:reminders-table<br />

2<br />

3 Migration created successfully!<br />

4 Generating optimized class loader<br />

This will generate a migration template for the reminder table:<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!