Create EventController with CRUD Operations
Description
Implement RESTful EventController with all CRUD operations.
Acceptance Criteria
-
index() - list events with pagination -
store() - create event with validation -
show() - get single event with attendances -
update() - update event -
destroy() - delete event -
Proper HTTP status codes -
Eager loading to prevent N+1
Implementation Steps
php artisan make:controller Api/EventController --api- Implement all CRUD methods
- Use Form Requests for validation
- Return API Resources
- Add to routes/api.php
Reference
- Roadmap:
docs/roadmaps/Implementation_Roadmap_Backend.mdPhase 4, Step 8-9 - Standards:
backend/CLAUDE.md- Controllers section