I need pass input data in my blade file to controller file blade file input fiels
<input type="number" id="cid" name="cid" />{{ $collaborator->user()->first()->id}}</input>
I need get above data to my controller addPermission function to save it in table
public function addPermission(Request $request, $id, Permission $permission)
{
$this->validate($request, [
'status' => 'required'
]);
$permission = new Permission;
$permission->status = $request->input('status');
$permission->project_id = $id;
$permission->save();
return redirect()->back()->with('info','Permission has been added to your Collaborator successfully');
}
can you give me an idea?