From 26b43fc9216dbd65ae318822a9e48f61407c159a Mon Sep 17 00:00:00 2001 From: Amir Yousefi Date: Sun, 11 Apr 2021 09:22:46 +0430 Subject: [PATCH] Fix relationship bug --- src/Traits/HasRoles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/HasRoles.php b/src/Traits/HasRoles.php index 281c84f..7b55cfb 100644 --- a/src/Traits/HasRoles.php +++ b/src/Traits/HasRoles.php @@ -8,6 +8,6 @@ trait HasRoles { public function role() { - return $this->belongsTo(Role::class)->first(); + return $this->belongsTo(Role::class); } }