php - Laravel "Hash::make" alternative for url parameters? -


how can hashing url paramaters in laravel? know hash::make method, that's method passwords (those hashes not url-friendly). laravel have beter alternative, can hash parameters http://url?key=2jd8dka72

you can use laravel encrypt function .

put use illuminate\support\facades\crypt; in header section , use crypt::encrypt($param) encrypt param , crypt::decrypt($param) decrypt it.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -