- Introduced new routes for entry reservations in admin app, including form, index, store, and download functionalities. - Created a migration to add the "Reserva de Tickets" menu item to the admin app. - Updated MenuSeeder to include the new menu item for ticket reservations. - Developed a PDF view for entry reservations. - Implemented tests for the EntryReservationController and EntryReservationService to ensure proper functionality and access control. - Refactored test setup to use a dedicated schema creation trait for better isolation and maintainability.
15 lines
294 B
PHP
15 lines
294 B
PHP
<?php
|
|
|
|
namespace App\Domains\Ticketing\Ticket\Resources;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class EntryReservationFormResource extends JsonResource
|
|
{
|
|
public function toArray(Request $request): array
|
|
{
|
|
return $this->resource;
|
|
}
|
|
}
|