小编Lar*_*ole的帖子

Laravel 5.2登录不起作用,没有重定向也没有错误

我的Laravel登录在上周有效,现在却没有(使用Laravel生成的标准登录)。我没有收到错误消息(错误的密码,异常等)。每次我按“登录”时,它都会重新加载页面。我已将重定向设置为/ member。有谁知道如何解决这个问题?

以下是一些文件:

route.php:

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

if(env("APP_ENV") == "prod"){
    Route::get('/', function() {
        return view("pages.demo");
    });
} else {

    Route::get('/', 'PagesController@index');

    Route::group(['middleware' => ['loggedin']], function(){
        Route::get('member/', function(){
            return redirect('member/dashboard');
        });
        Route::get('member/dashboard', 'PagesController@dashboard');
        Route::get('member/tree', 'TreeController@displayTree'); …
Run Code Online (Sandbox Code Playgroud)

php laravel laravel-5 laravel-5.2

5
推荐指数
1
解决办法
2865
查看次数

标签 统计

laravel ×1

laravel-5 ×1

laravel-5.2 ×1

php ×1