Skip to content

Instantly share code, notes, and snippets.

@omurphy27
Created December 29, 2016 18:33
Show Gist options
  • Save omurphy27/fcd37fd41efe681e2a55acca4f1620e4 to your computer and use it in GitHub Desktop.
Save omurphy27/fcd37fd41efe681e2a55acca4f1620e4 to your computer and use it in GitHub Desktop.
Laravel 5.3 - Manually Defining Default Auto Generated Auth Routes
<?php
// in the routes/web.php file
// the auto generated 'Auth::routes()'
// creates the below routes
// Authentication Routes...
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
Route::post('login', 'Auth\LoginController@login');
Route::post('logout', 'Auth\LoginController@logout')->name('logout');
// Registration Routes...
Route::get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
Route::post('register', 'Auth\RegisterController@register');
// Password Reset Routes...
Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm');
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail');
Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm');
Route::post('password/reset', 'Auth\ResetPasswordController@reset');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment