From e335d8298496570da1d82a41091db403fe69cf2c Mon Sep 17 00:00:00 2001 From: liapples Date: Thu, 12 Aug 2021 11:00:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0agent=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=85=B3=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/User.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/User.php b/app/Models/User.php index a94f288..dbefe9c 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -8,4 +8,9 @@ class User extends BaseModel { use HasFactory; protected $guarded = ['id', 'created_at', 'updated_at']; + + public function agent() + { + return $this->belongsTo(Agent::class); + } }