Support the ongoing development of Laravel.io →
Requests Input Installation
Last updated 2 years ago.
0

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?

0

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)

0

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

ci2014 ci2014 Joined 9 Nov 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.