This is my post method in form.
<form method="POST" action={{" edit ",$user=Auth::user()->id()}} >
This is my function in the controller
public function update(Request $request)
{
dd($request->all());
dd($request->id());
}
And this is the result I'm getting.
array:2 [▼
"_token" => "VauvcsHlHmxjEwPPjwhIMhm7BnKRAAr20P9lgcLd"
"id_" => "dfsgdfsg"
]
Now what I am trying to do is get the current users id from the form send it to the function in the controller and update the user's name, but I am only getting the name to be updated not the id as you can see in the result.