GoodsSetting.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Name: 芸众商城系统
  5. * Author: 广州市芸众信息科技有限公司
  6. * Profile: 广州市芸众信息科技有限公司位于国际商贸中心的广州,专注于移动电子商务生态系统打造,拥有芸众社交电商系统、区块链数字资产管理系统、供应链管理系统、电子合同等产品/服务。官网 :www.yunzmall.com www.yunzshop.com
  7. * Date: 2021/12/28
  8. * Time: 13:48
  9. */
  10. namespace app\common\models;
  11. use Illuminate\Database\Eloquent\SoftDeletes;
  12. /**
  13. * Class GoodsSpec
  14. * @package app\common\models
  15. * @property int uniacid
  16. * @property int goods_id
  17. */
  18. class GoodsSetting extends \app\common\models\BaseModel
  19. {
  20. use SoftDeletes;
  21. public $timestamps = true;
  22. public $table = 'yz_goods_setting';
  23. public $guarded = [];
  24. public static function getSet($column = '')
  25. {
  26. if ($column) {
  27. return static::uniacid()->first()->$column;
  28. } else {
  29. return static::uniacid()->first();
  30. }
  31. }
  32. }