__('Report_status 0'), '1' =>__('Report_status 1')]; } public function getReportStatusTextAttr($value, $data) { $value = $value ? $value : (isset($data['report_status']) ? $data['report_status'] : ''); $list = $this->getReportStatusList(); return isset($list[$value]) ? $list[$value] : ''; } public function user() { return $this->belongsTo('User', 'user_id', 'id',[],'LEFT')->setEagerlyType(0); } }