lecturize / laravel-translatable
A simple Package for multi-lingual Models in Laravel 5.
Installs: 2 334
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.6.4|^7.0
- illuminate/database: >=5.3
- illuminate/support: >=5.3
Requires (Dev)
- doctrine/dbal: 2.5.x
- laravel/framework: >=5.3
- mockery/mockery: 0.9.*
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2022-02-01 13:02:17 UTC
README
Laravel Translatable
A simple Package for multi-lingual Models in Laravel 5.
Important Notice
This package is a work in progress, please use with care and feel free to report any issues or ideas you may have!
We've transferred this package to a new owner and therefor updated the namespaces to Lecturize\Translatable. The config file is now config/lecturize.php
.
Installation
Require the package from your composer.json
file
"require": { "lecturize/laravel-translatable": "dev-master" }
and run $ composer update
or both in one with $ composer require lecturize/laravel-translatable
.
Next register the service provider and (optional) facade to your config/app.php
file
'providers' => [ // Illuminate Providers ... // App Providers ... Lecturize\Translatable\TranslatableServiceProvider::class ];
Configuration & Migration
$ php artisan vendor:publish --provider="Lecturize\Translatable\TranslatableServiceProvider"
This will create a config/lecturize.php
and a migration file. In the config file you can customize the table names, finally you'll have to run migration like so:
$ php artisan migrate
License
Licensed under MIT license.
Author
Handcrafted with love by Alexander Manfred Poellmann in Vienna & Rome.