moshaorui пре 3 недеља
родитељ
комит
5887cd5575
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Models/DistProduct.php

+ 1 - 1
app/Models/DistProduct.php

@@ -39,7 +39,7 @@ class DistProduct extends Model
 
     public static function getProductSlug($slug)
     {
-        return self::where('enabled', 1)->where('dist_id', getDistId())->where('slug', $slug)->with('images')->find();
+        return self::where('enabled', 1)->where('dist_id', getDistId())->where('slug', $slug)->with('images')->first();
     }