wesley 6 năm trước cách đây
mục cha
commit
cf447c8d01
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Models/ProductScheduleModel.php

+ 1 - 1
app/Models/ProductScheduleModel.php

xqd
@@ -46,7 +46,7 @@ class ProductScheduleModel extends BaseModel
     ];
 
     public function store(){
-        return (new StoreInfoModel())->find($this->store_id)->name;
+        return (new StoreInfoModel())->find($this->store_id)?(new StoreInfoModel())->find($this->store_id)->name:$this->store_id;
     }
 
 }