src/Models/Vacancy.php
public function getCapacityAttribute()
    {
        if ($this->humanresource) {
            return intval($this->humanresource->capacity);
        }

        return intval($this->attributes['capacity']);
    }
public function getCapacityAttribute()
    {
        if ($this->humanresource) {
            return intval($this->humanresource->capacity);
        }

        return intval($this->attributes['capacity']);
    }
public function getCapacityAttribute ( ) { if ( $ this -> humanresource ) { return intval ( $ this -> humanresource -> capacity ) ; } return intval ( $ this -> attributes [ 'capacity' ] ) ; }
get capacity.

@return int Capacity of the vacancy (in appointment instances)
get capacity .