app/Http/Controllers/CategoryController.php
/**
     * Remove the specified resource from storage.
     *
     * @param Category $category
     * @return JsonResponse
     */
Remove the specified resource from storage.
@param Category $category
@return JsonResponse
Remove the specified resource from storage . @param Category $category @return JsonResponse
public function destroy(Category $category)
    {
        if ($category->delete()){
            return Helper::response_with_data(null, false);
        }
        return Helper::response_with_data(null, true);
    }
public function destroy ( Category $ category ) { if ( $ category -> delete ( ) ) { return Helper :: response_with_data ( null , false ) ; } return Helper :: response_with_data ( null , true ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .