Boubou
1 week ago

Difference between $request->input('name') and $request->name ?

Posted 1 week ago by Boubou

Hello,

Phpstorm shows me the error:

$request->name  // Field accessed via magic method

But when I change the request to $request->input('name'), the error goes away.

Any idea why please? What is the difference between both ?

Thank you.

Please sign in or create an account to participate in this conversation.