add staff remove & staff invite test
This commit is contained in:
@@ -28,7 +28,7 @@ class User extends JsonResource
|
||||
'last_login' => optional($this->login_at)->diffForHumans(),
|
||||
'is_admin' => $this->isAdmin(),
|
||||
'is_staff' => $this->whenPivotLoaded('event_guest', function() {
|
||||
return $this->pivot->is_staff;
|
||||
return (int) $this->pivot->is_staff;
|
||||
}),
|
||||
],
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user