🏡 index : ~doyle/koselig.git

author Jordan Doyle <jordan@doyle.wf> 2016-10-15 13:41:15.0 +00:00:00
committer Jordan Doyle <jordan@doyle.wf> 2016-10-15 13:41:15.0 +00:00:00
commit
a748fa8d5070fde59f9563a5efa6c8c8e7ce1a95 [patch]
tree
f4f1363a2edf53c1994008e4acb598d152aeac17
parent
5949dda59e8cb91235290648ac1aae34f577ff24
download
a748fa8d5070fde59f9563a5efa6c8c8e7ce1a95.tar.gz

autocasting to carbon dates



Diff

 src/Models/Post.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/Models/Post.php b/src/Models/Post.php
index b05f4c2..9a9071f 100644
--- a/src/Models/Post.php
+++ b/src/Models/Post.php
@@ -17,6 +17,10 @@ class Post extends Model
    public $table = DB_PREFIX . 'posts';
    public $primaryKey = 'ID';

    public $timestamps = false;

    public $dates = ['post_date', 'post_date_gmt', 'post_modified', 'post_modified_gmt'];

    /**
     * Get all the posts within a certain post type.
     *