From c353a91dcf509632dd39aab0d982fd1aa2dc2411 Mon Sep 17 00:00:00 2001 From: Husky <Nadchanon@thinknet.co.th> Date: Wed, 24 Aug 2016 14:38:46 +0700 Subject: [PATCH] no message --- app/User.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/User.php b/app/User.php index 98eca09e..f7af7e40 100755 --- a/app/User.php +++ b/app/User.php @@ -34,13 +34,12 @@ class User extends Authenticatable return $this->hasMany('App\Post'); } - public function pages() { return $this->hasMany('App\Page'); } - public function pages2() + public function page2() { return $this->hasTo('App\Page'); } -- GitLab