Laravel authentication with new model & guard fails: Undefined index: model

后端 未结 1 390
-上瘾入骨i
-上瘾入骨i 2021-01-05 20:56

I\'m trying to authenticate my Laravel application (5.8) with an additional model & guard. The problem, I receive a \"Undefined index: model\" error during the following

相关标签:
1条回答
  • 2021-01-05 21:15

    I think you miss to configure a model in your partners auth provider, i.e.:

    'partners' => [
        'driver' => 'eloquent',
        //'table' => \App\Models\Partner::class,
        'model' => \App\Models\Partner::class,
    ],
    
    0 讨论(0)
提交回复
热议问题