Every live event in Boletilandia starts and ends in the admin panel. TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/AndresLopezCorrales/Boletilandia/llms.txt
Use this file to discover all available pages before exploring further.
EventoController (App\Http\Controllers\Admin\EventoController) handles all four operations — create, read, update, and delete — and every route it exposes is protected by the admin middleware, so only authenticated admin users can reach them.
Creating an Event
The Add Event form lives on the admin home page (admin.index) and submits to POST /admin-eventos, which is handled by EventoController::store().
Form Fields
The display name of the event. Must be a non-empty string of at most 255
characters.
The date of the event. Must be a valid date value (e.g.
2025-08-15).The street address of the venue. Must be a non-empty string of at most 255
characters. Rendered as a
<textarea> in the form.The name of the venue or location. Must be a non-empty string of at most 255
characters.
An optional banner image for the event. Must be a valid image file with a
maximum size of 2048 KB (2 MB). Stored under the
imagen_path/ directory on
the public disk.store() Method
Alerta_Exito session key that triggers a SweetAlert success dialog.
Viewing Events
GET /admin-ver_eventos queries all events whose FechaEvento is on or after the current server date (Carbon::now()->format('Y-m-d')), ordered by FechaEvento ascending, and passes the collection to admin.ver_eventos as $events.
Each event card in that view displays:
- Event name (
NombreEvento) - Date (
FechaEvento) - Address (
DireccionEvento) - Venue (
LugarEvento) - Banner image (rendered from
storage/ifimagen_pathis set) - Edit and Delete action buttons
Editing an Event
Open the edit form
Click Editar on any event card in the View Events list. The browser navigates to
GET /admin-editar_eventos/{evento}, which calls EventoController::mostrarPantallaEdicion() and renders admin.editar_eventos with the existing event data pre-filled into each input.Update the fields
Modify any combination of the five fields (same fields as the create form). The image field is optional on edit — leaving it blank keeps the existing image.
actualizarInfoEvento() Method
/admin-ver_eventos and a SweetAlert success dialog confirms the edit.
Deleting an Event
Clicking Eliminar on an event card does not immediately submit the form. Instead, it calls the JavaScript functionconfirmDelete(eventId), which triggers a SweetAlert confirmation dialog:
DELETE /admin-eliminar_eventos/{evento}, calling EventoController::eliminarEvento():
Deleting an event triggers the
boot() method on the Evento model, which
iterates over every related Seccion and calls $seccion->delete() on each
one. Each Seccion deletion in turn cascades to remove all Asiento records
belonging to that section — including any seats that have already been
purchased. This operation is irreversible.