Skip to content

Commit

Permalink
add method to get qualified timestamps column (#30792)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingimmick authored and taylorotwell committed Dec 9, 2019
1 parent e0ce10f commit 79c2c38
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,24 @@ public function getUpdatedAtColumn()
{
return static::UPDATED_AT;
}

/**
* Get the fully qualified "created at" column.
*
* @return string
*/
public function getQualifiedCreatedAtColumn()
{
return $this->qualifyColumn($this->getCreatedAtColumn());
}

/**
* Get the fully qualified "updated at" column.
*
* @return string
*/
public function getQualifiedUpdatedAtColumn()
{
return $this->qualifyColumn($this->getUpdatedAtColumn());
}
}

0 comments on commit 79c2c38

Please sign in to comment.