Skip to content
Advertisement

Tag: laravel

How to encrypt id in URL laravel

I want to encrypt the id in URL I’ll show my controller code and route. I’ve already used Crypt::encrypt($id); in my controller but it’s not working properly so I’ve commented that line in my controller this is my controller this is my route this is my blade Answer Use laravel builtin encryption to achieve this: While adding your route in

Advertisement