I have added this to the Controller:
public function updateMethod(Request $request)
{
$i = 1;
dd($request->input_name_1);
}
Now I wanted to change to this:
public function updateMethod(Request $request)
{
$i = 1;
dd($request->input_name_$i);
}
But I get this error:
syntax error, unexpected '$i' (T_VARIABLE), expecting ')'
So how can I add my custom variable to $request properly?