I need to execute closure routing first to check parameters, and then forward it to the corresponding controller. How can I achieve this requirement?
高洛峰2017-06-06 09:56:10
Laravel has middleware for parameter checking. To write middleware, just add the middleware to the routing parameters.
黄舟2017-06-06 09:56:10
You can execute the middleware settings, but be careful not to use the system admin for the two routes