public function getTimestampAttribute()
    {
        if (! array_key_exists('timestamp', $this->attributes)) {
            return Carbon::now();
        }

        return Carbon::parse($this->attributes['timestamp']);
    }
public function getTimestampAttribute()
    {
        if (! array_key_exists('timestamp', $this->attributes)) {
            return Carbon::now();
        }

        return Carbon::parse($this->attributes['timestamp']);
    }
public function getTimestampAttribute ( ) { if ( ! array_key_exists ( 'timestamp' , $ this -> attributes ) ) { return Carbon :: now ( ) ; } return Carbon :: parse ( $ this -> attributes [ 'timestamp' ] ) ; }
Gets the timestamp attribute.

@return Carbon The timestamp attribute.
Gets the timestamp attribute .