Code & Teknis
Dibuat oleh Satria Putra Creator
Tentang koleksi ini
Code review, debug, refactor, dan dokumentasi teknis.
Prompt dalam koleksi ini
Dokumentasi API Endpoint
Buat dokumentasi API endpoint: Endpoint: [METHOD /path] Deskripsi: [apa fungsinya] Request body sample: [paste] Response sample: [paste] Auth require...
Buat dokumentasi API endpoint:
Endpoint: [METHOD /path]
Deskripsi: [apa fungsinya]
Request body sample: [paste]
Response sample: [paste]
Auth required: [ya/tidak + tipe]
Format dokumentasi:
## [End...
Buat dokumentasi API endpoint: Endpoint: [METHOD /path] Deskripsi: [apa fungsinya] Request body sample: [paste] Response sample: [paste] Auth required: [ya/tidak + tipe] Format dokumentasi: ## [Endpoint name] **Endpoint:** `METHOD /path` **Auth:** [auth requirement] **Rate limit:** [kalau ada] ### Description [1 paragraf jelaskan fungsi + use case] ### Request **Headers:** [tabel header yang required] **Body:** [tabel: field, type, required, description, example] ### Response **Success (200/201):** [paste JSON + jelaskan tiap field] **Errors:** [tabel: status code, scenario, response] ### Example [cURL command lengkap] [Sample response] ### Notes [edge cases, caveats, related endpoints]
Setup Project Laravel Baru
Bantu setup project Laravel baru: Nama project: [nama] Laravel version: [11/10/dll] PHP version: [8.2+/8.3+] Fitur utama: [list 3-5 fitur inti] Authe...
Bantu setup project Laravel baru:
Nama project: [nama]
Laravel version: [11/10/dll]
PHP version: [8.2+/8.3+]
Fitur utama: [list 3-5 fitur inti]
Authentication: [Sanctum/Breeze/Jetstream]
Database: [M...
Bantu setup project Laravel baru: Nama project: [nama] Laravel version: [11/10/dll] PHP version: [8.2+/8.3+] Fitur utama: [list 3-5 fitur inti] Authentication: [Sanctum/Breeze/Jetstream] Database: [MySQL/PostgreSQL/SQLite] Frontend: [Blade/Livewire/Inertia+Vue/Inertia+React] Deployment target: [shared hosting/VPS/PaaS] Generate: 1. composer.json dengan dependencies yang sesuai 2. .env template (dev + prod) 3. Struktur folder rekomendasi (kalau beda dari default) 4. Initial migrations untuk fitur inti 5. Setup script (artisan commands urut) 6. Pre-deployment checklist 7. Dev workflow recommendation Jelaskan reasoning untuk pilihan dependencies.
Eloquent Query Optimization
Optimasi Eloquent query Laravel berikut: Query saat ini: [paste] Konteks: [page/feature apa] Volume data: [estimasi rows] Loading time saat ini: [ber...
Optimasi Eloquent query Laravel berikut:
Query saat ini: [paste]
Konteks: [page/feature apa]
Volume data: [estimasi rows]
Loading time saat ini: [berapa detik]
DB engine: [MySQL/PostgreSQL/SQLite]
A...
Optimasi Eloquent query Laravel berikut: Query saat ini: [paste] Konteks: [page/feature apa] Volume data: [estimasi rows] Loading time saat ini: [berapa detik] DB engine: [MySQL/PostgreSQL/SQLite] Analisis: 1. Identify performance issue (N+1, missing index, etc) 2. Explain dampaknya pada query Optimasi: 1. Refactored query dengan eager loading 2. Index suggestion (kolom + alasan) 3. Cache strategy (kalau applicable) 4. Pagination/chunking jika data besar 5. Database-level optimization (kalau query complex) Kasih before vs after benchmark estimasi. Gunakan Laravel features (with, withCount, withCache, scopes).
Masuk
untuk menyimpan prompt ke koleksi kamu.