๐ Umum
27 views
Troubleshooting
Troubleshooting
Login & Authentication
"These credentials do not match our records"
- Cek email & password
- Email belum verified? Cek
users.email_verified_at - Account di-soft-delete?
users.deleted_atnot null
Setelah login redirect ke /portal padahal admin
- Pastikan
users.role=owner/admin/doctor/dllbukanpatient - Cek di
FortifyServiceProvider::LoginResponseโ role check logic
"Page expired" (419)
- CSRF token mismatch โ refresh page
- Session expired โ login ulang
SESSION_DRIVERdi .env mismatch dengan storage
Layout / Tampilan
Sidebar tidak muncul / styling broken
- Asset belum di-build:
npm run build - Clear view cache:
php artisan view:clear - Browser cache: hard refresh (Ctrl+Shift+R)
"Unable to locate a class or view for component"
- View berada di path yang salah. Component
<x-xxx>cari diresources/views/components/xxx.blade.php
Livewire form tidak submit / button tidak respon
- Vite asset belum loaded โ cek browser console
- Token CSRF expired
- JS error โ buka DevTools console
Database & Migration
Migration error "table already exists"
php artisan migrate:status # cek status
php artisan migrate:rollback # rollback last batch
"Column not found" setelah pull code
php artisan migrate --force
php artisan config:clear
Seed gagal "Duplicate entry"
- Hapus row yang konflik, atau pakai
firstOrCreatedi seeder
License (Production)
Wizard /__pair infinite loop
APP_URLmismatch dengan host browser- Set
APP_URL=https://yourdomain.com(HTTPS exact match)
"Tidak bisa menghubungi server lisensi"
- Outbound firewall block
whitelabel.co.id:443โ whitelist
App jalan tapi marketplace bilang revoked
- Cache heartbeat โ tunggu 24h atau
php artisan cache:clear
Performance
Page load lambat
- Enable Redis:
CACHE_DRIVER=redis,SESSION_DRIVER=redis - Cache config:
php artisan config:cache - Cache routes:
php artisan route:cache - Cache views:
php artisan view:cache - Run queue worker:
php artisan queue:work
Database query lambat
- Cek N+1 dengan Telescope
- Add eager loading:
with(['relation']) - Index kolom yang sering di-filter
Email & WhatsApp
Reminder WA tidak terkirim
- Cek
messaging_providersada provider aktif untuk channelwhatsapp - Test connection di admin panel
- Cek queue worker jalan:
php artisan queue:work - Cek Laravel log:
storage/logs/laravel.log
Schedule reminders:dispatch tidak jalan
- Setup cron di server:
* * * * * cd /path && php artisan schedule:run >> /dev/null 2>&1
Common Errors
| Error | Fix |
|---|---|
Class "X" not found |
composer dump-autoload |
View [x] not found |
Cek path file blade |
Route [x] not defined |
php artisan route:clear |
Permission denied storage |
chmod -R 775 storage bootstrap/cache |
MySQL server has gone away |
Increase max_allowed_packet |