Laravel : How to hide url parameter?

后端 未结 3 1644
一向
一向 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-15 00:07

    You cannot hide a parameter in URL. If you don't want to show the ID then try using SLUG. I hope you understand what is a SLUG. If you don't then here it is. If you course title is My new Course Title then its slug would be my-new-course-title. And make sure it is unique like an ID in the table. It is also good for SEO, readable and looks good.

提交回复
热议问题