protected function addDateAttributesToArray(array $attributes)
    {
        foreach ($this->getDates() as $key) {
            if (! isset($attributes[$key])) {
                continue;
            }

            $attributes[$key] = $this->serializeDate(
                $this->asDateTime($attributes[$key])
            );
        }

        return $attributes;
    }
protected function addDateAttributesToArray(array $attributes)
    {
        foreach ($this->getDates() as $key) {
            if (! isset($attributes[$key])) {
                continue;
            }

            $attributes[$key] = $this->serializeDate(
                $this->asDateTime($attributes[$key])
            );
        }

        return $attributes;
    }
protected function addDateAttributesToArray ( array $ attributes ) { foreach ( $ this -> getDates ( ) as $ key ) { if ( ! isset ( $ attributes [ $ key ] ) ) { continue ; } $ attributes [ $ key ] = $ this -> serializeDate ( $ this -> asDateTime ( $ attributes [ $ key ] ) ) ; } return $ attributes ; }
Add the date attributes to the attributes array.

@param  array  $attributes
@return array
Add the date attributes to the attributes array .