I am using ajax to post data to the controller and I need to update the record based on the id I pass through. How would I go about this with Laravel Eloquent? Here is the controller...I know the data is being passed to the controller correctly just don't know how to update based on the id I send. Thank you for your help.
public function home(Request $request) {
$updateCus = New Customer($request->all());
$updateCus->update()->where('id', $request['id']);
}