Skip to content

Commit 26b43fc

Browse files
authored
Fix relationship bug
1 parent 2745cd5 commit 26b43fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/HasRoles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ trait HasRoles
88
{
99
public function role()
1010
{
11-
return $this->belongsTo(Role::class)->first();
11+
return $this->belongsTo(Role::class);
1212
}
1313
}

0 commit comments

Comments
 (0)