mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 11:16:39 -05:00
16 lines
235 B
PHP
16 lines
235 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Traits;
|
||
|
|
||
|
trait Timestamp
|
||
|
{
|
||
|
/**
|
||
|
* Returns the Unix timestamp of the latest update
|
||
|
*
|
||
|
* @return number
|
||
|
*/
|
||
|
public function timestamp() {
|
||
|
return strtotime($this->updated_at);
|
||
|
}
|
||
|
}
|