diff --git a/src/Traits/HasRole.php b/src/Traits/HasRole.php index 9148919..04948ef 100644 --- a/src/Traits/HasRole.php +++ b/src/Traits/HasRole.php @@ -3,10 +3,11 @@ namespace Aammui\RolePermission\Traits; use Aammui\RolePermission\Models\Role; +use Illuminate\Database\Eloquent\Relations\BelongsToMany; trait HasRole { - public function role() + public function role(): BelongsToMany { return $this->belongsToMany(Role::class); }