app/Http/Controllers/CategoriaRecetasController.php
/**
   * Remove the specified resource from storage.
   *
   * @param  \App\Categoria  $categorias_receta
   * @return \Illuminate\Http\Response
   */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Categoria $categorias_receta)
  {
    if ($categorias_receta->delete()) {
      return response()->json($this->messages['delete.success'], Response::HTTP_OK);
    }
    return response()->json($this->messages['delete.fail'], Response::HTTP_CONFLICT);
  }
public function destroy ( Categoria $ categorias_receta ) { if ( $ categorias_receta -> 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 .