For everyone who is experiencing problems with using usual forms: I had a trailing slash at the end of my form action:
Changing: /services/post/ to /services/post solved my problem.
Does anyone have an idea, why that happened?
The way the laravel core creates the \Illuminate\Http\Request instance that is used by the Request Facade is \Illuminate\Http\Request::capture()
;
If you just do new \Illuminate\Http\Request
you will get an empty request "data bucket" that still has to be filled with the actual input from $_REQUEST (which is exactly what capture() does)
Hello tmarstell,
thank you for your reply. My problem was solved as following:
For everyone who is experiencing problems with using usual forms: I had a trailing slash at the end of my form action: Changing: /services/post/ to /services/post solved my problem.
As you said correctly, my other tries, as $request = new \Illuminate\Http\Request; print_r($request->all());, were wrong.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community