public function getFormattedSalaryAttribute() { return '$' . number_format($this->getAttribute('salary'), 2); }