app/Http/Controllers/CustomerController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Customer  $customer
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(CustomerRequest $request, Customer $customer)
    {
        $this->authorize('update', $customer);
        $customer->update($request->validated());
        return redirect()->route('customers.index')
            ->with('status', __('messages.customer_update_status'));
    }
public function update ( CustomerRequest $ request , Customer $ customer ) { $ this -> authorize ( 'update' , $ customer ) ; $ customer -> update ( $ request -> validated ( ) ) ; return redirect ( ) -> route ( 'customers.index' ) -> with ( 'status' , __ ( 'messages.customer_update_status' ) ) ; }
Update the specified resource in storage.
Update the specified resource in storage .