Skip to content
Discussion options

You must be logged in to vote

Thanks for the reply, it made me review some more of my code and I realised that I had this in my config.backpack.base:

'middleware_class' => [
    App\Http\Middleware\CheckIfAdmin::class,
    \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
    \Backpack\CRUD\app\Http\Middleware\AuthenticateSession::class,
]

When I changed it to this, my code started to work:

'middleware_class' => [
    App\Http\Middleware\CheckIfAdmin::class,
    \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
    // \Backpack\CRUD\app\Http\Middleware\AuthenticateSession::class,
]

I can't remember adding Middleware\AuthenticateSession and it looks like it isn't needed -…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sammyblackbaron
Comment options

Answer selected by sammyblackbaron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants