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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
Firstly, I'd like to thank you for creating this awesome package.
I'd like to know why the Middleware attribute is not allowed in methods (with the repeatable flag). I think it's really nice to have:
Where "AjaxOnly" is an attribute that extends the Middleware attribute and applies the AjaxOnly Middleware to the route.
For reference, currently, we must do it this way:
Both ways work, but I think that being able to use the Middleware attribute and attributes that inherit from it is more elegant. =D
Beta Was this translation helpful? Give feedback.
All reactions