You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having difficulty using the newish LPL_MIDDLEWARE env var.
I need to inject some middleware called firetest before every request this package deals with. I can add it via the config like this and it works fine:
LPL_MIDDLEWARE="['firetest', 'web', HandleAuthenticatedUsers::class]" #result: Target class [['firetest', 'web', HandleAuthenticatedUsers] does not exist
LPL_MIDDLEWARE="['firetest', 'web', Grosv\LaravelPasswordlessLogin\HandleAuthenticatedUsers\HandleAuthenticatedUsers::class]" #result: White screen no visible errors.
LPL_MIDDLEWARE="['firetest', 'web', Grosv\LaravelPasswordlessLogin\HandleAuthenticatedUsers\HandleAuthenticatedUsers]" #result: White screen no visible errors.
LPL_MIDDLEWARE="['firetest', 'web']" #result: Target class [['firetest', 'web']] does not exist.
LPL_MIDDLEWARE="\['firetest', 'web'\]" #result: Target class [['firetest', 'web']] does not exist.
I'm thinking there's no way to define an array in .env without having it exploded or something to turn it into an array when it's retrieved, so is the LPL_MIDDLEWARE actually usable? I suppose if one only want's to define a single middleware it is. Any thoughts please?
The text was updated successfully, but these errors were encountered:
I'm having difficulty using the newish
LPL_MIDDLEWARE
env var.I need to inject some middleware called
firetest
before every request this package deals with. I can add it via the config like this and it works fine:How would I add it in
.env
?I've tried:
I'm thinking there's no way to define an array in .env without having it exploded or something to turn it into an array when it's retrieved, so is the
LPL_MIDDLEWARE
actually usable? I suppose if one only want's to define a single middleware it is. Any thoughts please?The text was updated successfully, but these errors were encountered: