fix: add Dashboard/Homepage translations and OPcache troubleshooting to README

This commit is contained in:
root
2026-05-27 17:16:47 +02:00
parent e34300a8a1
commit 56616d084c
2 changed files with 33 additions and 1 deletions
+31
View File
@@ -428,6 +428,37 @@ Auto-detects: **Linux, Windows IIS, XAMPP, WAMP, Apache, Nginx**
---
## Troubleshooting
### 500 Error After `php artisan optimize`
If you get a 500 error after running `php artisan optimize`, PHP OPcache is likely caching stale files. Fix:
```bash
# Disable OPcache in your FPM configuration:
# Edit /etc/php/8.x/fpm/conf.d/99-opcache.ini
opcache.enable=0
# Then restart PHP-FPM:
sudo systemctl restart php8.x-fpm
```
Alternatively, keep OPcache enabled but restart PHP-FPM after every `php artisan optimize`:
```bash
php artisan optimize
sudo systemctl restart php8.x-fpm
```
### Filament Translations Not Working
If Filament navigation labels or resource names aren't translating (e.g., Dashboard shows in English instead of Dutch):
1. Add the missing key to `lang/vendor/filament/{locale}/resources.php` (navigations section) or `lang/{locale}.json`
2. Clear the cache: `php artisan optimize:clear` (then restart PHP-FPM if OPcache is on)
---
## Performance Optimizations
| Optimization | Description |
+2 -1
View File
@@ -347,5 +347,6 @@
"radio.wizard.test_not_run": "Nog niet getest.",
"radio.wizard.test_connection_fail": "Kon de test niet uitvoeren: ",
"radio.wizard.error": "Fout",
"radio.wizard.unknown_error": "Onbekende fout"
"radio.wizard.unknown_error": "Onbekende fout",
"Homepage": "Homepage"
}