BimCombineResource.php 541 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Http\Resources\API;
  3. use Illuminate\Http\Request;
  4. class BimCombineResource extends BaseResource
  5. {
  6. /**
  7. * Transform the resource into an array.
  8. *
  9. * @return array<string, mixed>
  10. */
  11. public function toArray(Request $request): array
  12. {
  13. return [
  14. 'id' => $this->id,
  15. 'name' => $this->name,
  16. 'data' => $this->data,
  17. // 'library' => new LibraryResource($this->library),
  18. 'created_at' => (string) $this->created_at,
  19. ];
  20. }
  21. }