@rin4ik But you just said
but in controller he expects id :(
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
@rin4ik But you just said
but in controller he expects id :(
@rin4ik Laravel magic. If you pass model as the second parameter the route helper takes what it needs
@Vilfago Laravel magic. if you only need to pass one parameter to the route then the helper accepts it as the second parameter. If you need more than one parameter then they must be posted as an array
@bashy he is newbie and doesn't know about route model binding. I didn't want to change his controller :)
@Snapey thanks for info.
Well was a csrf token ever added in?
@jlrdw do you ask me or others one ?
@jlrdw It's like no one reads the basic docs of Laravel and comes on here for a 35 reply 10 human convo to solve it.
Please or to participate in this conversation.