Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel model set new attribute


    public function getAvailabilityAttribute()
    {
        return $this->calculateAvailability();  
    }
 
PREVIOUS NEXT
Tagged: #laravel #model #set #attribute
ADD COMMENT
Topic
Name
7+4 =