If you would like a route parameter to always be constrained by a given regular expression, you may use the "pattern" method. You should define these patterns in the "boot" method of your "RouteServiceProvider":
Once the pattern has been defined, it is automatically applied to all routes using that parameter name: