LoginSignup
0
0

More than 1 year has passed since last update.

composer update したら Laravel-admin のログイン画面でリダイレクトのループをしてしまった件

Posted at

Laravel 5.x の環境で、composer update 後に Laravel-admin のログイン画面でリダイレクトループで死んでしまったので解決策をメモっておく。

対策 : config/admin.php に admin.auth.excepts の設定を追加

config/admin.php
    'auth' => [

        'controller' => App\Admin\Controllers\AuthController::class,

        'guards' => [
            'admin' => [
                'driver'   => 'session',
                'provider' => 'admin',
            ],
        ],

        'providers' => [
            'admin' => [
                'driver' => 'eloquent',
                'model'  => Encore\Admin\Auth\Database\Administrator::class,
            ],
        ],
        
        'excepts'   => [
            'auth/login'
        ]
    ],

いろいろ追いかけたけど最終的にこれだけでなおった。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0