mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-13 04:30:41 -05:00
28 lines
602 B
PHP
28 lines
602 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
use App\Models\License;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
/** @mixin License */
|
|
class LicenseResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function toArray(Request $request): array
|
|
{
|
|
return [
|
|
'created_at' => $this->created_at,
|
|
'updated_at' => $this->updated_at,
|
|
'id' => $this->id,
|
|
'name' => $this->name,
|
|
'link' => $this->link,
|
|
];
|
|
}
|
|
}
|