Skip to content
Advertisement

Laravel query string into api call in routes

I have this route

JavaScript

Sadly this doesn’t work

I can reach the api with

JavaScript

How can i replicate this in my route to work?

Advertisement

Answer

You got double }} there, try delete it so it will be like this:

JavaScript

Edit:

Add the route parameter to API function parameters

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement