File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,17 @@ public function whereNumber($parameters)
39
39
return $ this ->assignExpressionToParameters ($ parameters , '[0-9]+ ' );
40
40
}
41
41
42
+ /**
43
+ * Specify that the given route parameters must be ULIDs.
44
+ *
45
+ * @param array|string $parameters
46
+ * @return $this
47
+ */
48
+ public function whereUlid ($ parameters )
49
+ {
50
+ return $ this ->assignExpressionToParameters ($ parameters , '[0-7][0-9a-hjkmnp-tv-zA-HJKMNP-TV-Z]{25} ' );
51
+ }
52
+
42
53
/**
43
54
* Specify that the given route parameters must be UUIDs.
44
55
*
Original file line number Diff line number Diff line change 83
83
* @method static \Illuminate\Routing\RouteRegistrar whereAlpha(array|string $parameters)
84
84
* @method static \Illuminate\Routing\RouteRegistrar whereAlphaNumeric(array|string $parameters)
85
85
* @method static \Illuminate\Routing\RouteRegistrar whereNumber(array|string $parameters)
86
+ * @method static \Illuminate\Routing\RouteRegistrar whereUlid(array|string $parameters)
86
87
* @method static \Illuminate\Routing\RouteRegistrar whereUuid(array|string $parameters)
87
88
* @method static \Illuminate\Routing\RouteRegistrar whereIn(array|string $parameters, array $values)
88
89
* @method static \Illuminate\Routing\RouteRegistrar as(string $value)
You can’t perform that action at this time.
0 commit comments