L5 User Role Middlewares

Posted 4 years ago by spaceemotion

Is there a way to dynamically create middlewares, or pass on parameters to a middleware?

I would like to have middlewares to check against different user roles, but so far I would only create individual files for each user role that I currently can think of.

Is there an easier way?

Please sign in or create an account to participate in this conversation.