belongsTo('App\Models\AlbumProductPriceModel','id','agent_id'); }*/ /** 主键 */ protected $primaryKey = 'id'; //分页 protected $perPage = PAGE_NUMS; /** * 可以被集体附值的表的字段 * * @var string */ protected $fillable = [ 'store_id', 'is_show_ma_price', 'interactive', 'user_id', 'set_price_point', 'phone', 'address', 'lat', 'lon', 'name', 'status', 'realname', 'get_count', 'callCount', 'newCount', 'pointCount', 'favoriteCount', 'share_times' ]; public function user() { return $this->belongsTo('App\Models\AlbumUserModel', 'user_id'); } }