app/Http/Controllers/CustomerController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Customer  $customer
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Customer $customer)
    {
        $this->authorize('delete', $customer);
        $customer->delete();
        if(request()->wantsJson() || request()->expectsJson()) {
           return [
                'message' => trans_choice('messages.customer_delete_status', 1),
            ];
        }
    }
public function destroy ( Customer $ customer ) { $ this -> authorize ( 'delete' , $ customer ) ; $ customer -> delete ( ) ; if ( request ( ) -> wantsJson ( ) || request ( ) -> expectsJson ( ) ) { return [ 'message' => trans_choice ( 'messages.customer_delete_status' , 1 ) , ] ; } }
Remove the specified resource from storage.
Remove the specified resource from storage .