i want to update a customer using patch methodn here is my route
Route::patch('/customers/updateCustomer', 'CustomerController@update')
->name('customers.update');
and here is my form :
<form method="POST" action="{{ route('customers.update') }}">
@csrf
@method('PATCH')
how to pass the id of the customer , the update method requires two parameters, when the first one is the data from the from , the second should be the id of the customer
<form method="POST" action="{{ route('customers.update',$customer->id) }}">