Skip to content

Commit

Permalink
Add User resource
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Dec 5, 2024
1 parent d503421 commit 06c0804
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Http/Resources/User.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Cachet\Http\Resources;

use Illuminate\Http\Request;
use TiMacDonald\JsonApi\JsonApiResource;

class User extends JsonApiResource
{
public function toAttributes(Request $request): array
{
return [
'id' => $this->id,
];
}
}

0 comments on commit 06c0804

Please sign in to comment.