__('Is_using 1'), '0' => __('Is_using 0')]; } public function getIsUsingTextAttr($value, $data) { $value = $value ? $value : (isset($data['is_using']) ? $data['is_using'] : ''); $list = $this->getIsUsingList(); return isset($list[$value]) ? $list[$value] : ''; } public function user() { return $this->belongsTo('User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0); } public function decoraterelation() { return $this->belongsTo('Decoraterelation', 'decorate_id', 'id', [], 'LEFT')->setEagerlyType(0); } }