diff --git a/app/Http/Controllers/ProductController.php b/app/Http/Controllers/ProductController.php index 33738d52..7e83ef28 100644 --- a/app/Http/Controllers/ProductController.php +++ b/app/Http/Controllers/ProductController.php @@ -84,6 +84,7 @@ class ProductController extends Controller if (is_null($egg->id) || is_null($node->id)) return response()->json('node and egg id is required', '400'); return Product::query() + ->where('disabled', '=', false) ->whereHas('nodes', function (Builder $builder) use ($node) { $builder->where('id', '=', $node->id); })