mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 16:52:08 +00:00
fix: refactored the codebase
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
class RoomDeckResource extends JsonResource
|
||||
{
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function toArray(Request $request): array
|
||||
{
|
||||
return [
|
||||
'name' => $this->resource['name'],
|
||||
'cards' => $this->resource['cards'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user