app/Http/Controllers/APIProductController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Product  $product
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy($product)
    {
        $product = Product::where('id', $product)->first();
        $product->delete();
        return response()->json('OK', 204);
    }
public function destroy ( $ product ) { $ product = Product :: where ( 'id' , $ product ) -> first ( ) ; $ product -> delete ( ) ; return response ( ) -> json ( 'OK' , 204 ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .