Skip to content

Commit 68b9fe4

Browse files
committed
Fix: Register user by default role in model
1 parent b4ae2a2 commit 68b9fe4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

laravel/app/User.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,8 @@ public function getJWTCustomClaims()
6767
];
6868

6969
protected $guard_name = 'api';
70+
71+
protected $attributes = [
72+
'menuroles' => 'user',
73+
];
7074
}

0 commit comments

Comments
 (0)