Vigyata.AI
Is this your channel?
GithubGithub04

35 Add whereUlid(param) support for routing

This PR adds `whereUlid()` for routing, which is basically the same convenience we already had with `whereUuid()`. I used it to ensure my route only matches valid ULIDs—random strings return 404, and real ULIDs pass through.

Buy on Github

You'll be taken to Github to complete your purchase.

Pros

  • +Easy ULID constraint for route parameters
  • +Consistent with whereUuid style routing
  • +Prevents invalid IDs from matching routes

Cons

  • -Only useful if your app actually uses ULIDs
  • -You still need to generate/store ULIDs correctly in your models

Featured in this video