- Update API: events, users, policies, routes, resources, migrations - Remove deprecated models/resources (customers, setlists, invitations, etc.) - Refresh admin app and docs; remove apps/band Made-with: Cursor
22 lines
728 B
Plaintext
22 lines
728 B
Plaintext
# EventCrew Cursor Rules
|
|
|
|
## Stack
|
|
PHP 8.2 + Laravel 12 | TypeScript + Vue 3 + Vuexy/Vuetify | Pinia + TanStack Query
|
|
|
|
## Laravel
|
|
- Resource Controllers, Form Requests, API Resources — altijd
|
|
- HasUlids op business modellen, HasFactory, SoftDeletes waar gedocumenteerd
|
|
- Global Scope OrganisationScope op event-gerelateerde modellen
|
|
- Policies voor autorisatie, nooit inline role checks
|
|
|
|
## Vue 3
|
|
- <script setup lang='ts'> altijd
|
|
- TanStack Query voor API state, Pinia voor UI state
|
|
- Vuetify componenten eerst, custom CSS als laatste redmiddel
|
|
|
|
## Naamgeving
|
|
- snake_case DB | camelCase JS | PascalCase Vue | use* composables | use*Store Pinia
|
|
|
|
## Tests
|
|
- PHPUnit Feature Test per controller, minimaal: 200 + 401 + 403
|