app/Http/Controllers/LongsorController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Longsor  $longsor
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy($idtahun, $idlongsor)
    {
        try {
			$longsor = Longsor::whereUuid($idlongsor);
			$longsor->delete();
		} catch (FileNotFoundException $e) {
		}
		return redirect()->route('tahun.longsor.index', $idtahun)->with('success', 'Data deleted successfully');
    }
public function destroy ( $ idtahun , $ idlongsor ) { try { $ longsor = Longsor :: whereUuid ( $ idlongsor ) ; $ longsor -> delete ( ) ; } catch ( FileNotFoundException $ e ) { } return redirect ( ) -> route ( 'tahun.longsor.index' , $ idtahun ) -> with ( 'success' , 'Data deleted successfully' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .