You're not passing in the Id. Please show your routes.php file.
Getting correct url with resource in routes.
I have a resource for home which is my home and then i have a resource. When i go to /home/7/show by directing to home.show after login where 7 is the user id, the actual route is blog.app/home/%7Bhome%7D.
Is this laravel being awesome and hiding my database ids in the url or is there something fishy that i need to fix?
A couple of other questions while i have your attention.
How would i change the {home} paramter in the route resource. Right now the list looks something like:
/home
/home/{home}
/home/{home}/edit
/home/create
etc
Let's say i wanted it to say {user} instead.
As well, what if I didn't want the paramter to represent id? What if I wanted it to represent user_type or something.
Sorry for obvious questions, I'm scouring the documentation looking for the answers but this forum is always so helpful and friendly I thought I'd ask. Thanks
Please or to participate in this conversation.