moshaorui před 1 měsícem
rodič
revize
5887cd5575
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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();
     }