Api\StarterKit\Entities\Entity::getCreatedAtAttribute PHP Method

getCreatedAtAttribute() public method

public getCreatedAtAttribute ( ) : integer
return integer
    public function getCreatedAtAttribute()
    {
        $time = strtotime($this->attributes['created_at']);
        return $time == false ? 0 : $time;
    }