app/Http/Controllers/KabupatenController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Kabupaten  $kabupaten
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy($uuid)
    {
        $data = Kabupaten::whereUuid($uuid)->firstOrFail();
        $data->delete();
		return redirect()->route('kabupaten.index')->with('success', 'tahun deleted successfully');
    }
public function destroy ( $ uuid ) { $ data = Kabupaten :: whereUuid ( $ uuid ) -> firstOrFail ( ) ; $ data -> delete ( ) ; return redirect ( ) -> route ( 'kabupaten.index' ) -> with ( 'success' , 'tahun deleted successfully' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .