app/Http/Controllers/UEGController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\UEG  $uEG
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(UEG $ueg) {
        $ueg->estatus = 0;
        $ueg->save();
        return response()->json("Se elimino correctamente", 200);
    }
public function destroy ( UEG $ ueg ) { $ ueg -> estatus = 0 ; $ ueg -> save ( ) ; return response ( ) -> json ( " Se elimino correctamente " , 200 ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .