N
N
NikolayAlb2017-04-16 20:37:40
Laravel
NikolayAlb, 2017-04-16 20:37:40

Laravel 5.4 route() not passing child route parameter as GET parameter?

The page is in the path: /bla-bla/{project_id}/bla-bla
I'm trying to display a link like /bla-bla/{project_id}/bla-bla?project_id=number&user_name=name ,
but when using

{{ route('project.team.remove', ['project_id'=>'number', 'user_name'=>'name']) }}

I get: /bla-bla/ number /bla-bla?user_name=name (generally any first parameter is set where number)
How do I force the first parameter to also be passed as a GET parameter?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2017-04-16
@NikolayAlb

Only if you call them differently, otherwise it will be inserted between the slashes and nowhere else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question