Skip to content

Commit

Permalink
Merge pull request #10 from bedus-creation/relation-type-add
Browse files Browse the repository at this point in the history
feat: relationship type
  • Loading branch information
bedus-creation authored Aug 26, 2023
2 parents efa7bb0 + 0abb5a3 commit a0b4698
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Traits/HasRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a0b4698

Please sign in to comment.