Skip to content

Commit b7f8e4f

Browse files
Override default auth routes
1 parent c7cdf8f commit b7f8e4f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

routes/web.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,19 @@
1111
|
1212
*/
1313

14-
use Illuminate\Support\Facades\Auth;
1514
use Illuminate\Support\Facades\Route;
1615

17-
Auth::routes();
16+
// Authentication Routes...
17+
Route::post('login', 'Auth\LoginController@login');
18+
Route::post('logout', 'Auth\LoginController@logout')->name('logout');
1819

19-
Route::get( '/{any}', function () {
20+
// Registration Routes...
21+
Route::post('register', 'Auth\RegisterController@register');
22+
23+
// Password Reset Routes...
24+
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail');
25+
Route::post('password/reset', 'Auth\ResetPasswordController@reset');
26+
27+
Route::get('/{any}', function () {
2028
return view('index');
2129
})->where('any', '.*');
22-

0 commit comments

Comments
 (0)