What routes does Laravel 5.2's `Route::auth();` contain and where can I see them?
phpcn_u1582
phpcn_u1582 2017-05-16 16:53:03
0
1
381

Laravel 5.2'sRoute::auth();What routes does it include and where can I see it?

phpcn_u1582
phpcn_u1582

reply all(1)
巴扎黑
@see Illuminate\Routing\Router.php
public function auth()
{
    // Authentication Routes...
    $this->get('login', 'Auth\AuthController@showLoginForm');
    $this->post('login', 'Auth\AuthController@login');
    $this->get('logout', 'Auth\AuthController@logout');

    // Registration Routes...
    $this->get('register', 'Auth\AuthController@showRegistrationForm');
    $this->post('register', 'Auth\AuthController@register');

    // Password Reset Routes...
    $this->get('password/reset/{token?}', 'Auth\PasswordController@showResetForm');
    $this->post('password/email', 'Auth\PasswordController@sendResetLinkEmail');
    $this->post('password/reset', 'Auth\PasswordController@reset');
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!