You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php
namespace App\Models;
use Dcat\Admin\Traits\HasDateTimeFormatter;use Illuminate\Database\Eloquent\SoftDeletes;use Illuminate\Database\Eloquent\Model;
class ImsCjdcMarket extends Model{ use HasDateTimeFormatter; use SoftDeletes;
protected $table = 'ims_cjdc_market'; protected $dateFormat = 'U'; public function setImgsAttribute($imgs) { if ($imgs){ $this->attributes['imgs'] = implode(',',$imgs); } }
public function getImgsAttribute($imgs) { return explode(',',$imgs); }
public function mp(){ return $this->hasOne('\App\Models\LanzuMpInfo','id','mp_id'); }}
|