dyjh 6 anos atrás
pai
commit
d05fa193fa

+ 1 - 1
app/Http/Controllers/Admin/Album/ProductController.php

xqd
@@ -45,7 +45,7 @@ class ProductController extends Controller
         }
         $list = $query->paginate();
         foreach ($list as $key => $item) {
-            $cat = AlbumCatModel::where('id', $item->cat_id)->first();
+            $cat = AlbumCatModel::where('id', $item->cat_id)->first();dd($cat);
             $catParent = AlbumCatModel::where('id', $cat->parent_id)->first();
             $item->cat_name = ($catParent->name ?? '') . '>' . $cat->name;
             $upload_img = json_decode($item->upload_img);