Download the PHP package javaabu/translatable without Composer
On this page you can find all versions of the php package javaabu/translatable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download javaabu/translatable
More information about javaabu/translatable
Files in javaabu/translatable
Package translatable
Short Description Adds multi-lingual to Laravel models
License MIT
Homepage https://github.com/Javaabu/translatable
Informations about the package translatable
Translatable
Adds multi-lingual to Laravel models
Installation
You can install the package via composer:
Usage
To get started with this package, you can simply add $table->dbTranslatable(); or $table->jsonTranslatable(); to your migration up function.
And then all you need to do is add the Translatable implementation using the IsDbTranslatable or IsJsonTranslatable trait.
Now, your models will automatically be translated according to the current app()->getLocale().
To add different translations, all you need to do is
Documentation
You'll find the documentation on https://docs.javaabu.com/translatable.
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving this package? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
Testing
You can run the tests with
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Javaabu Pvt. Ltd.
- Arushad Ahmed (@dash8x)
- Xylam (@Xylam)
- FlameXode (@WovenCoast)
- Athfan Khaleel (@athphane)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of translatable with dependencies
illuminate/support Version ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
javaabu/helpers Version ^1.70