I need to do all url ids encrypted like :
user/edit/1
items/edit/35
posts/details/52
to
user/edit/sdfjk54dfds
items/edit/sdfjk54dfds
posts/details/sdfjk5s4dfds
there is lots of areas like blade files and in controllers that id use url('items/edit/2') and also in controller some function are passed by objects like public function itemedit(Items $items).
I also try $encrypt_val = Crypt::encrypt($value) and $decrypt_val = Crypt::decrypt($encrypt_val ); but I need to do it in Every-ware.
There is any short way or Middleware function to do it ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire