getUpdatedAtColumn() public method

Get the name of the "updated at" column.
public getUpdatedAtColumn ( ) : string
return string
コード例 #1
0
ファイル: Builder.php プロジェクト: aysenli/laravel-admin-1
 /**
  * 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());
 }
コード例 #2
0
 /**
  * Get the name of the "updated at" column.
  *
  * @return string
  */
 public function getUpdatedAtColumn()
 {
     return $this->parent->getUpdatedAtColumn();
 }
コード例 #3
0
 /**
  * Get the name of the related model's "updated at" column.
  *
  * @return string
  */
 public function relatedUpdatedAt()
 {
     return $this->related->getUpdatedAtColumn();
 }
コード例 #4
0
 protected function saneReadOnlyDefaultForField(Model $model, $fieldName)
 {
     return in_array($fieldName, [$model->getKeyName(), $model->getCreatedAtColumn(), $model->getUpdatedAtColumn()]);
 }