app/Http/Controllers/InsumoController.php
/**
   * Remove the specified resource from storage.
   *
   * @param  \App\Insumo  $insumo
   * @return \Illuminate\Http\Response
   */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Insumo $insumo)
  {
    if ($insumo->delete()) {
      return response()->json($this->messages['delete.success'], Response::HTTP_OK);
    }
    return response()->json($this->messages['delete.fail'], Response::HTTP_CONFLICT);
  }
public function destroy ( Insumo $ insumo ) { if ( $ insumo -> delete ( ) ) { return response ( ) -> json ( $ this -> messages [ 'delete.success' ] , Response :: HTTP_OK ) ; } return response ( ) -> json ( $ this -> messages [ 'delete.fail' ] , Response :: HTTP_CONFLICT ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .