app/Http/Controllers/CustomerController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Customer  $customer
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Customer $customer)
    {
        $nama = $customer->nama;
        $customer->delete();
        return redirect()->back()->with('success', 'Data Customer '.$nama.' berhasil dihapus');
    }
public function destroy ( Customer $ customer ) { $ nama = $ customer -> nama ; $ customer -> delete ( ) ; return redirect ( ) -> back ( ) -> with ( 'success' , 'Data Customer ' . $ nama . ' berhasil dihapus' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .