Skip to content

Commit

Permalink
Fix relationship bug
Browse files Browse the repository at this point in the history
  • Loading branch information
amiryousefi authored Apr 11, 2021
1 parent 2745cd5 commit 26b43fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/HasRoles.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ trait HasRoles
{
public function role()
{
return $this->belongsTo(Role::class)->first();
return $this->belongsTo(Role::class);
}
}

0 comments on commit 26b43fc

Please sign in to comment.