Files
dots-bot-api/app/Http/Resources/API/v2/CartCollection.php
T
KKlochko 4a4d5e7335 Add Cart model, resource and its API, Pivot table with Items.
Update Items model to have relationship with cart.
2023-06-15 17:43:59 +03:00

20 lines
408 B
PHP

<?php
namespace App\Http\Resources\API\v2;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\ResourceCollection;
class CartCollection extends ResourceCollection
{
/**
* Transform the resource collection into an array.
*
* @return array<int|string, mixed>
*/
public function toArray(Request $request): array
{
return parent::toArray($request);
}
}