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
/test has auth:api middlware
foo/bar has employee middlware but it should auth:api and employee
foo/biz has employee middlware but it should auth:api and employer
Possible Solutions
Currently what i'm doing is write the full middlware on every child 'middleware' => ['auth:api','employer'], or moving it outside the group.
The text was updated successfully, but these errors were encountered:
Not really sure as I don't use Lumen, but this is definitely a very basic functionality that I have never seen not work (ie. inheriting parent middleware).
There are definitely some Lumen users here, so hopefully someone can have a look at this for you.
Actual Behaviour
Dingo child/inner route middleware not "inherit" parent's middleware.
Expected Behaviour
The child routes should append middlware define from the parent as its own middlware.
Steps to Reproduce
/test has auth:api middlware
foo/bar has employee middlware but it should auth:api and employee
foo/biz has employee middlware but it should auth:api and employer
Possible Solutions
Currently what i'm doing is write the full middlware on every child
'middleware' => ['auth:api','employer'],
or moving it outside the group.The text was updated successfully, but these errors were encountered: