/** * Get the status name attribute. * * @return null|string */ public function getStatusNameAttribute() { return PostStatus::get($this->status); }