Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/228.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 除了默认的laravel登录页面之外,是否可以使用Auth::route()作为登录的身份验证程序?_Php_Laravel_Authentication_Login_Laravel 5.2 - Fatal编程技术网

Php 除了默认的laravel登录页面之外,是否可以使用Auth::route()作为登录的身份验证程序?

Php 除了默认的laravel登录页面之外,是否可以使用Auth::route()作为登录的身份验证程序?,php,laravel,authentication,login,laravel-5.2,Php,Laravel,Authentication,Login,Laravel 5.2,我很想知道是否可以在默认登录/注册页面之外使用Laravel Auth路由。如果一个项目中有两个不同的登录页面,是否可以通过Auth::route处理这两个请求 第二个登录页面如下所示: <form class="form" role="form" method="post" action="{{ route('login') }}" accept-charset="UTF-8" id="login-nav"> <div class="fo

我很想知道是否可以在默认登录/注册页面之外使用Laravel Auth路由。如果一个项目中有两个不同的登录页面,是否可以通过Auth::route处理这两个请求

第二个登录页面如下所示:

 <form class="form" role="form" method="post" action="{{ route('login') }}" accept-charset="UTF-8" id="login-nav">
                  <div class="form-group">
                    <label class="sr-only" for="LogInEmail">Email address</label>
                    <input type="email" class="form-control" id="LogInEmail" placeholder="Email address" required>
                  </div>
                  <div class="form-group">
                    <label class="sr-only" for="LogInPassword">Password</label>
                    <input type="password" class="form-control" id="LogInPassword" placeholder="Password" required>
                    <div class="help-block text-right">
                    <a href="">Forget the password ?</a>
                  </div>
                </div>
                <div class="form-group">
                  <button type="submit" class="btn btn-primary btn-block blue-gradient z-depth-1a">Log in <i class="fas fa-sign-in-alt ml-1"></i></button>
                </div>
                <div class="checkbox">
                  <label>
                    <input type="checkbox"> keep me logged-in
                  </label>
                </div>
              </form>
我只显示1个登录名,因为php artisan make:auth为您提供了默认登录名。如果要将此表单数据传递给Auth::route,需要进行哪些更改

谢谢

Auth::route是routes Laravel bootstrap的语法糖。这显示了工作原理。您只需复制Auth::routes创建的文件,然后根据需要对其进行编辑