Laravel URL encryption/decryption
I needed to encrypt and decrypt all the URLs in an already developed web application, but I didn’t want to modify each blade file or other places manually. Here's what I did:
I created a custom URL generator that extends the default URL generator and registered it in the AppServiceProvider. The result was that it worked perfectly, and all URLs in the application were automatically encrypted.
URLs for actions like list, view, and delete in CRUD operations are functioning well without requiring decryption.
However, the edit functionality is not working because it needs to decrypt the parameters. I’ve already written middleware to handle the decryption of parameters and added it in Kernel.php. I also registered it in the service provider, but it’s still not working. The execution isn't even reaching the middleware.
Could you please guide me on what changes are required in the middleware to resolve this issue?
Please or to participate in this conversation.