How to pass an id to the url from a component for laravel route
I have a route in laravel which I pass an id and it returns the data. This worked fine when I was using:
<a href="{{route(route.name), $education->id}}>
However I'm using a component, I have a button when clicked shows a modal
Ok I've followed this and its still not working correctly. The button works fine and is getting the correct id. The actual component doesn't get the data though. Even if I just call the Id like so:
Just to add I've tried putting two properties onto the button and the modal component its self. I added title and educationId and called them simply within the component using
<p>{{ title }}</p>
and
<p>{{ educationId }}</p>
and added them to the props. The title displays only when I put it directly on the component like so:
The educationId doesn't display within the component but when I inspect the modal element the id is being called on the but doesn't get any further. Im lost as to why the title worked but the educationId doesn't.
Anyway I thought id share just incase it helps with any ideas. Thanks again @rin4ik for your help.