laravel 5.3 new Auth::routes()

后端 未结 10 1420
清歌不尽
清歌不尽 2020-12-04 05:26

Recently I start to use laravel 5.3 to write a blog, but I have a question after run php artisan make:auth

when I run this, it will generate routes in m

10条回答
  •  無奈伤痛
    2020-12-04 06:13

    if you are in laravel 5.7 and above Auth::routes(['register' => false]); in web.php

    more possible options are as:

    Auth::routes([
      'register' => false, // Routes of Registration
      'reset' => false,    // Routes of Password Reset
      'verify' => false,   // Routes of Email Verification
    ]);
    

提交回复
热议问题