search

Home  >  Q&A  >  body text

What routes does Laravel 5.2's `Route::auth();` contain and where can I see them?

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

phpcn_u1582phpcn_u15822754 days ago398

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-05-16 16:55:03

    @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');
    }

    reply
    0
  • Cancelreply