here is my database table I want to work with I want to update the participation column of form_submissions table with boolean 1 by using the user_id
here is mycontroller
public function update($id)
{
$submission = Form_Submission::find($id);
$submission->participation=1;
$submission->save();
return back();
{
I got the user_id from the link using a button and passed it to the function can someone tell me how I can update the above record using user_id?