I
I
Ivan2021-07-16 21:44:45
Laravel
Ivan, 2021-07-16 21:44:45

How can I pass a parameter in postman (or address bar) so that I can get it later in the controller as a property in $request?

Hello. I'm trying to drive the parameters into $request, so that later in the controller I can get it as $request->something. I try directly into the string, I try it through postman adding keys, the address bar looks like http://backend/test?key=value&key2=value2. But it does not get into the request, I get an error that there are no required parameters. The route tried to create views /testand /test/{var}, still an error. How to do it right?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question