/** * Register a regular expression based filter with the router. * * @param string $pattern * @param string $name * @param array|null $methods * @return void * @deprecated since version 5.1. * @static */ public static function whenRegex($pattern, $name, $methods = null) { \Illuminate\Routing\Router::whenRegex($pattern, $name, $methods); }