php Laravel Customized Auth路线

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Laravel Customized Auth路线相关的知识,希望对你有一定的参考价值。

<?php
/*
|--------------------------------------------------------------------------
| Csustomized Auth routing
|--------------------------------------------------------------------------
|
| If you want to customize the default auth generated by laravel then 
| use the following routes instead of Auth:routes() and make modifications as necessery
| 
|
*/

//Artisan generated route :
//Auth::routes();


//Custom routes that do the exact same as above route :

// 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')->name('password.request');
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
Route::post('password/reset', 'Auth\ResetPasswordController@reset');


Route::get('/home', 'HomeController@index')->name('home');

以上是关于php Laravel Customized Auth路线的主要内容,如果未能解决你的问题,请参考以下文章

如何避免在 laravel 4 中使用 php composer dump-autoload?

markdown mac_shortcuts_customized

bash customized

Implement a customized pin code input control

使用 PHP 将 SND/AU 转换为 mp3 [关闭]

Implement a customized pin code input control