Skip to content

Instantly share code, notes, and snippets.

@mojoblanco
Created March 11, 2017 12:53
Show Gist options
  • Save mojoblanco/6af9ee1d50cbfb033cce7d77854afa2c to your computer and use it in GitHub Desktop.
Save mojoblanco/6af9ee1d50cbfb033cce7d77854afa2c to your computer and use it in GitHub Desktop.
Laravel Auth Routes Without Registration
// Auth Routes
Route::group(['namespace' => 'Auth'], function () {
Route::get('login', 'LoginController@showLoginForm')->name('login');
Route::post('login', 'LoginController@login')->name('login');
Route::post('logout', 'LoginController@logout')->name('logout');
Route::post('password/email', 'ForgotPasswordController@sendResetLinkEmail')->name('password.email');
Route::get('password/reset', 'ForgotPasswordController@showLinkRequestForm')->name('password.request');
Route::post('password/reset', 'ResetPasswordController@reset');
Route::get('password/reset/{token}', 'ResetPasswordController@showResetForm')->name('password.reset');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment