Level 75
Jan 30, 2022
3
Level 3
How to get request parameters when using request() helper?
if I do dd(request());
I get:
Illuminate\Http\Request {#43 ▼
#json: null
#convertedFiles: []
#userResolver: Closure($guard = null) {#811 ▶}
#routeResolver: Closure() {#821 ▶}
+attributes: Symfony\Component\HttpFoundation\ParameterBag {#45 ▶}
+request: Symfony\Component\HttpFoundation\InputBag {#44 ▼
#parameters: array:8 [▼
And the #parameters is the array of the registration form.
how can I save these parameters to variables, or to an array?
Assuming I assigned request() to a variable:
$request = request();
Please or to participate in this conversation.