laravel/laravel — pull request #705 by awellis13 (2012-05-23 22:00:30+00:00)
Title: Allow UNIX timestamps when using Eloquent.

This feature allows developers the flexibility to use unix timestamps with their models instead of being confined to TIMESTAMP and DATETIME. The documentation has also been updated to explain how to use this functionality.

#### Overview

To enable unix timestamps on your model simply add the following to your model:

````php
class User extends Eloquent {

public static $timestamps = true;

public static function created_at()
{
return time();
}

public static function updated_at()
{
return time();
}

}
````

This feature also updated the Schema builder. You can now do the following:

````php
$table->timestamps(true);
$table->date('added_on', true);
$table->timestamp('added_on', true);
````

The above will create `INT(10) UNSIGNED` columns.

#### Questions?

If you have any questions about this functionality please don't hesitate to ask.

> *PS:* I'm not sure why the pull request is pulling in Phill's commit. I did a pull from upstream's develop before starting this feature branch.