Installation
Require the package. The service provider is auto-discovered — it registers the translatable() schema macro, the TranslationManager behind the Translatable facade, the <x-translatable-status> Blade component and the language lines, with no manual registration:
composer require roundly-consulting/translatable-for-laravelPublishing is optional — the package works with zero host configuration. Publish the config and/or the validation language lines only if you want to own them:
php artisan vendor:publish --tag="translatable-config"
php artisan vendor:publish --tag="translatable-translations"There is no migrations tag and the package ships no models: you add translatable columns to your own tables with the translatable() column macro (see Schema and storage). It registers no Artisan commands of its own.
sluggable-for-laravel, enums-for-laravel and package-toolkit-for-laravel are installed automatically as dependencies.
Show your open-source love
This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.
More ways to support, including cryptoBy donating, you agree to our donation terms.
Want this built into your product?
We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.