Download the PHP package roundly-consulting/translatable-for-laravel without Composer
On this page you can find all versions of the php package roundly-consulting/translatable-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roundly-consulting/translatable-for-laravel
More information about roundly-consulting/translatable-for-laravel
Files in roundly-consulting/translatable-for-laravel
Package translatable-for-laravel
Short Description Locale-map (jsonb) translatable attributes with a fallback chain for Eloquent; per-locale slugs via sluggable-for-laravel — native, zero third-party deps.
License MIT
Homepage https://roundly-consulting.com/open-source/docs/translatable-for-laravel
Informations about the package translatable-for-laravel
Translatable for Laravel
Translatable Eloquent attributes stored as a plain { "en": "…", "sk": "…" } locale map in one
json/jsonb column. Reads return the current locale through a configurable fallback chain, so
content never renders blank, and per-locale slugs come built in.
Installation
Requires PHP 8.4 and Laravel 12 or 13. Supported databases: PostgreSQL 12+ and MySQL 8.0.23+ (SQLite for tests). SQL Server is not supported.
Usage
Give each translatable attribute one locale-map column and list it on the model:
Read and write in the current locale:
The facade handles everything that isn't per-model state:
Documentation
The full documentation — configuration, every feature and its API, and testing — lives on our website: roundly-consulting.com/open-source/docs/translatable-for-laravel
Release notes are in CHANGELOG.md. To contribute, see the contributing guide.
Support our work
This package is free and open source, built and maintained by Roundly Consulting. If it saves you time, please consider supporting our open-source work — a one-time donation, a monthly pledge on Patreon or a crypto donation helps fund maintenance, new features and new packages.
License
The MIT License (MIT). Copyright (c) roundly-consulting. See LICENSE.md.
All versions of translatable-for-laravel with dependencies
illuminate/console Version ^12.0|^13.0
illuminate/contracts Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
illuminate/validation Version ^12.0|^13.0
illuminate/view Version ^12.0|^13.0
php Version ^8.4
roundly-consulting/enums-for-laravel Version ^1.0
roundly-consulting/package-toolkit-for-laravel Version ^1.0
roundly-consulting/sluggable-for-laravel Version ^1.0