Esempio n. 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());
 }
Esempio n. 2
0
 /**
  * Get the name of the related model's "updated at" column.
  *
  * @return string
  */
 public function relatedUpdatedAt()
 {
     return $this->related->getUpdatedAtColumn();
 }
Esempio n. 3
0
 /**
  * Get the name of the "updated at" column.
  *
  * @return string
  */
 public function getUpdatedAtColumn()
 {
     return $this->parent->getUpdatedAtColumn();
 }