fix str2 style
This commit is contained in:
@@ -27,7 +27,7 @@ class User extends JsonResource
|
||||
'thumbnail_cover_image' => new ImageResource($this->thumbnailImage),
|
||||
'last_login' => optional($this->login_at)->diffForHumans(),
|
||||
'is_admin' => $this->isAdmin(),
|
||||
'is_staff' => $this->whenPivotLoaded('event_guest', function() {
|
||||
'is_staff' => $this->whenPivotLoaded('event_guest', function () {
|
||||
return (int) $this->pivot->is_staff;
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user