diff options
Diffstat (limited to 'api/Users/Models/User.php')
-rw-r--r-- | api/Users/Models/User.php | 5 |
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'); + } } |