protected function getModifiedDate($object)
    {
        if (! isset($object->modified)) {
            return date('Y-m-d h:i:s');
        }

        return $object->modified === '0000-00-00 00:00:00'
            ? date('Y-m-d h:i:s')
            : $object->modified;
    }
protected function getModifiedDate($object)
    {
        if (! isset($object->modified)) {
            return date('Y-m-d h:i:s');
        }

        return $object->modified === '0000-00-00 00:00:00'
            ? date('Y-m-d h:i:s')
            : $object->modified;
    }
protected function getModifiedDate ( $ object ) { if ( ! isset ( $ object -> modified ) ) { return date ( 'Y-m-d h:i:s' ) ; } return $ object -> modified === '0000-00-00 00:00:00' ? date ( 'Y-m-d h:i:s' ) : $ object -> modified ; }
When a record has a modified date, make sure one is set.

@param $object

@return mixed
When a record has a modified date make sure one is set .