I need to encrypt routes in this URL? Because I do not want user to access URL by changing the item id. For example, user can change /items/1234 to /item/5678. Although item
You can encrypt the route in your controller while redirecting, using
\Crypt::encrypt(product_id)
and on the product page you can decrypt the product ID from the URL using
$product_id = \Crypt::decrypt($url_parameter)
that's the best possible way.
But there will be some chances of exception if the user Edit's the Product ID parameter from the URL which you will need to handle.