Director::getFormattedSalaryAttribute PHP Method

getFormattedSalaryAttribute() public method

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