Add DateTime support to database binding layer.

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
This commit is contained in:
Taylor Otwell
2012-04-10 15:03:42 -05:00
parent 7d5b6b3748
commit 94b8582865
7 changed files with 32 additions and 15 deletions

View File

@@ -5,6 +5,13 @@ use Laravel\Database\Expression;
class Grammar extends \Laravel\Database\Grammar {
/**
* The format for properly saving a DateTime.
*
* @var string
*/
public $datetime = 'Y-m-d H:i:s';
/**
* All of the query componenets in the order they should be built.
*