diff options
author | Marvin Borner | 2018-08-28 16:05:01 +0200 |
---|---|---|
committer | Marvin Borner | 2018-08-28 16:05:01 +0200 |
commit | 781438fc4cd54c885e52af22e1dc0ccaaace015e (patch) | |
tree | 3cdbf2e2a6df6e0a321084dbc1c3d7370f0eb498 /api/Posts/Models/Post.php | |
parent | 113dfd2bc5089c66b7ff5d1ddccbd8c895bdd766 (diff) |
Finished api of getting posts
Diffstat (limited to 'api/Posts/Models/Post.php')
-rw-r--r-- | api/Posts/Models/Post.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/Posts/Models/Post.php b/api/Posts/Models/Post.php index c93fc4f..9da1401 100644 --- a/api/Posts/Models/Post.php +++ b/api/Posts/Models/Post.php @@ -26,7 +26,7 @@ class Post extends Model public function post_type() { - return $this->hasOne('Api\Posts\Models\PostType'); + return $this->belongsTo('Api\Posts\Models\PostType'); } public function media_post() |