Download the PHP package weboccult/laravel-translatable without Composer
On this page you can find all versions of the php package weboccult/laravel-translatable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download weboccult/laravel-translatable
More information about weboccult/laravel-translatable
Files in weboccult/laravel-translatable
Download weboccult/laravel-translatable
More information about weboccult/laravel-translatable
Files in weboccult/laravel-translatable
Vendor weboccult
Package laravel-translatable
Short Description A Laravel package for easy model translations using morph relationships. Supports multiple languages, caching, validation, and automatic translation loading.
License MIT
Homepage https://github.com/weboccult/laravel-translatable
Package laravel-translatable
Short Description A Laravel package for easy model translations using morph relationships. Supports multiple languages, caching, validation, and automatic translation loading.
License MIT
Homepage https://github.com/weboccult/laravel-translatable
Please rate this library. Is it a good library?
Informations about the package laravel-translatable
Laravel Translatable
A Laravel package for easy model translations using morph relationships. This package allows you to add multilingual support to your Laravel models using a simple trait.
Installation
You can install the package via composer:
After installing the package, publish the configuration and migration files:
Then run the migrations:
Basic Setup
- Add the
HasTranslations
trait to your model and specify translatable attributes:
Usage Examples
1. Creating and Setting Translations
2. Retrieving Translations
3. Querying with Translations
4. Practical Examples
Example 1: Controller with Translation Handling
Example 2: Blade View Usage
Example 3: API Resource
Features
- Easy integration with Laravel models
- Support for multiple translatable attributes
- Efficient relationship-based translation loading
- Flexible query building for translations
- Support for multiple languages
- Bulk translation operations
- Automatic fallback to model attributes
Configuration
You can configure the package by editing the config/translatable.php
file:
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-translatable with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
illuminate/support Version ^8.0|^9.0|^10.0
illuminate/database Version ^8.0|^9.0|^10.0
illuminate/cache Version ^8.0|^9.0|^10.0
illuminate/support Version ^8.0|^9.0|^10.0
illuminate/database Version ^8.0|^9.0|^10.0
illuminate/cache Version ^8.0|^9.0|^10.0
The package weboccult/laravel-translatable contains the following files
Loading the files please wait ....