Laravel : How to hide url parameter?

后端 未结 3 1638
一向
一向 2020-12-14 23:38

Here the scenario is I want to pass a variable which will be send from one page to another and in next page it\'s gonna store through a form. So I have passed the variable f

3条回答
  •  生来不讨喜
    2020-12-14 23:59

    here is no way you hide parameter in url, rather then you convert parameter value encrypt or hash is up to you,

    other-way is save value in session first, then call the value from session without define parameter in url.

    because laravel route only working to pattern of url /string /id, post get. dynamic value you must be writing / getting using pattern method.

    Thanks.

提交回复
热议问题