moshaorui 3 týždňov pred
rodič
commit
5887cd5575
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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();
     }