Every two weeks I send out a newsletter containing lots of interesting stuff for the modern PHP developer. You can expect quick tips, links to interesting tutorials, opinions and packages. Want to learn the cool stuff? Then sign up now!

How to add multilingual support to Eloquent

Eric Barnes, the curator of Laravel News, recently decided to publish guest posts. Mike Bronner contributed the first guest post on how to install Z-Ray in Homestead.  Today, an article written by me was published.

Did you know that several countries throughout the world have more than one official language? For example, my home country Belgium has three; French, Dutch, and German. Most Belgians also speak English.

Laravel’s Eloquent ORM is a very powerful part of Laravel. Unfortunately, it doesn’t provide support for multilingual models out of the box. Adding that functionality yourself isn’t that difficult.


When starting out with Laravel, Eric’s Laravel News was invaluable to my learning process. So it feels great to give something back. It still is by far my favourite newsletter and source of Laravel related news. If you use the framework in any way be sure to subscribe.

Freek Van der Herten is a partner and developer at Spatie, an Antwerp based company that specializes in creating web apps with Laravel. After hours he writes about modern PHP and Laravel on this blog. When not coding he’s probably rehearsing with his kraut rock band.