app/Http/Controllers/KecamatanController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Kecamatan  $kecamatan
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy($idkab, $idkec)
    {
        try {
            $data = Kecamatan::whereUuid($idkec);
            $data->delete();
        }
        catch (FileNotFoundException $e) {
        }
        return redirect()->route('kabupaten.kecamatan.index', $idkab)->with('success', 'Data deleted successfully');
    }
public function destroy ( $ idkab , $ idkec ) { try { $ data = Kecamatan :: whereUuid ( $ idkec ) ; $ data -> delete ( ) ; } catch ( FileNotFoundException $ e ) { } return redirect ( ) -> route ( 'kabupaten.kecamatan.index' , $ idkab ) -> with ( 'success' , 'Data deleted successfully' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .