Skip to content

Commit

Permalink
fix: show roles for author data
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Dec 7, 2024
1 parent c7a6ede commit 5bba203
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Http/Resources/AuthorResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function toArray($request): array
'first_name' => $this->first_name,

Check failure on line 20 in src/Http/Resources/AuthorResource.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.3

Access to an undefined property CSlant\Blog\Core\Models\User::$first_name.
'last_name' => $this->last_name,

Check failure on line 21 in src/Http/Resources/AuthorResource.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.3

Access to an undefined property CSlant\Blog\Core\Models\User::$last_name.
'image' => $this->avatar_url,
'roles' => $this->roles,
];
}
}

0 comments on commit 5bba203

Please sign in to comment.