aboutsummaryrefslogtreecommitdiffhomepage
path: root/api/Users/Models/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/Users/Models/User.php')
-rw-r--r--api/Users/Models/User.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/api/Users/Models/User.php b/api/Users/Models/User.php
index 9e5b0b7..e568608 100644
--- a/api/Users/Models/User.php
+++ b/api/Users/Models/User.php
@@ -27,4 +27,9 @@ class User extends Authenticatable
protected $hidden = [
'password', 'remember_token',
];
+
+ public function posts()
+ {
+ return $this->hasMany('Api\Posts\Models\Post');
+ }
}