Ben Sampson wrote a nice tutorial on how to mask IDs in URLs using hashids in Laravel. This is very useful if you want to generate an URL like this:

https://app.name/users/RqB3N

laravel mask id url