Skip to content

Commit 179c07e

Browse files
author
Gareth Redfern
committed
add the isAdmin property to the UserResource
1 parent 1be1a47 commit 179c07e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Http/Resources/UserResource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function toArray($request)
1919
'name' => $this->name,
2020
'email' => $this->email,
2121
'avatar' => $this->avatar,
22+
'isAdmin' => $this->isAdmin(),
2223
'emailVerified' => $this->email_verified_at,
2324
];
2425
}

0 commit comments

Comments
 (0)