moshaorui 3 долоо хоног өмнө
parent
commit
5887cd5575

+ 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();
     }