1. Laravel Translations: Keys in JSON or PHP Array
- Good for smaller projects with low risks of repeating keywords. Easy to translate for non-technical people.
- Better for larger projects due to its structured format. Provides context which page the word comes from.
2. Changes in Laravel 11 compared to Laravel 9
- Moved from resources/lang to just lang. In Laravel 10, Lang folder doesn't exist by default.
- Place to put middlewares has changed from app/HTTP/kernel.php to bootstrap/app.php.
- New syntax middleware redirect guests to. In Laravel 10, it used to be in the file app/HTTP/middleware/authenticate.
via Laravel Translations: Keys in JSON or PHP Array?