getUpdatedAtColumn() public method

Get the name of the "updated at" column.
public getUpdatedAtColumn ( ) : string
return string
Example #1
0
 /**
  * Add the "updated at" column to an array of values.
  *
  * @param  array  $values
  * @return array
  */
 protected function addUpdatedAtColumn(array $values)
 {
     if (!$this->model->usesTimestamps()) {
         return $values;
     }
     $column = $this->model->getUpdatedAtColumn();
     return array_add($values, $column, $this->model->freshTimestampString());
 }
Example #2
0
 /**
  * Get the name of the "updated at" column.
  *
  * @return string
  */
 public function getUpdatedAtColumn()
 {
     return $this->parent->getUpdatedAtColumn();
 }
 /**
  * Get the name of the related model's "updated at" column.
  *
  * @return string
  */
 public function relatedUpdatedAt()
 {
     return $this->related->getUpdatedAtColumn();
 }
 protected function saneReadOnlyDefaultForField(Model $model, $fieldName)
 {
     return in_array($fieldName, [$model->getKeyName(), $model->getCreatedAtColumn(), $model->getUpdatedAtColumn()]);
 }