├── .gitignore ├── .scrutinizer.yml ├── .styleci.yml ├── .travis.yml ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── composer.json ├── config └── translation.php ├── migrations └── 2019_02_25_163419_create_translations_table.php ├── src ├── Commands │ ├── MakeDriverCommand.php │ └── TestTranslationExtensions.php ├── Contracts │ └── TranslationDriver.php ├── Drivers │ ├── ArrayTranslationDriver.php │ ├── JSONTranslationDriver.php │ └── MySQL │ │ ├── MySQLTranslationDriver.php │ │ └── Translation.php ├── Exceptions │ ├── InvalidTranslationDriverException.php │ └── NoDefaultDriverException.php ├── Jobs │ ├── RemoveModelFromLanguageModelMap.php │ └── SyncModelLanguageMapping.php ├── ModelTranslationServiceProvider.php ├── Translates.php ├── Translation.php └── TranslationManager.php ├── stubs └── driver.stub └── tests ├── Dependencies ├── 2019_02_25_104823_create_articles_table.php ├── Article.php └── ArticleWithSoftDeletes.php ├── Extensions ├── UserExtensionsTest.php └── phpunit.xml ├── TestCase.php ├── Unit ├── JsonDriverTest.php ├── TranslatesTraitTest.php ├── TranslationDriversTest.php └── TranslationManagerTest.php └── phpunit.xml /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/.gitignore -------------------------------------------------------------------------------- /.scrutinizer.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/.scrutinizer.yml -------------------------------------------------------------------------------- /.styleci.yml: -------------------------------------------------------------------------------- 1 | preset: laravel -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/composer.json -------------------------------------------------------------------------------- /config/translation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/config/translation.php -------------------------------------------------------------------------------- /migrations/2019_02_25_163419_create_translations_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/migrations/2019_02_25_163419_create_translations_table.php -------------------------------------------------------------------------------- /src/Commands/MakeDriverCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/Commands/MakeDriverCommand.php -------------------------------------------------------------------------------- /src/Commands/TestTranslationExtensions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/Commands/TestTranslationExtensions.php -------------------------------------------------------------------------------- /src/Contracts/TranslationDriver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/Contracts/TranslationDriver.php -------------------------------------------------------------------------------- /src/Drivers/ArrayTranslationDriver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/Drivers/ArrayTranslationDriver.php -------------------------------------------------------------------------------- /src/Drivers/JSONTranslationDriver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/Drivers/JSONTranslationDriver.php -------------------------------------------------------------------------------- /src/Drivers/MySQL/MySQLTranslationDriver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/Drivers/MySQL/MySQLTranslationDriver.php -------------------------------------------------------------------------------- /src/Drivers/MySQL/Translation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/Drivers/MySQL/Translation.php -------------------------------------------------------------------------------- /src/Exceptions/InvalidTranslationDriverException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/Exceptions/InvalidTranslationDriverException.php -------------------------------------------------------------------------------- /src/Exceptions/NoDefaultDriverException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/Exceptions/NoDefaultDriverException.php -------------------------------------------------------------------------------- /src/Jobs/RemoveModelFromLanguageModelMap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/Jobs/RemoveModelFromLanguageModelMap.php -------------------------------------------------------------------------------- /src/Jobs/SyncModelLanguageMapping.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/Jobs/SyncModelLanguageMapping.php -------------------------------------------------------------------------------- /src/ModelTranslationServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/ModelTranslationServiceProvider.php -------------------------------------------------------------------------------- /src/Translates.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/Translates.php -------------------------------------------------------------------------------- /src/Translation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/Translation.php -------------------------------------------------------------------------------- /src/TranslationManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/src/TranslationManager.php -------------------------------------------------------------------------------- /stubs/driver.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/stubs/driver.stub -------------------------------------------------------------------------------- /tests/Dependencies/2019_02_25_104823_create_articles_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/tests/Dependencies/2019_02_25_104823_create_articles_table.php -------------------------------------------------------------------------------- /tests/Dependencies/Article.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/tests/Dependencies/Article.php -------------------------------------------------------------------------------- /tests/Dependencies/ArticleWithSoftDeletes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/tests/Dependencies/ArticleWithSoftDeletes.php -------------------------------------------------------------------------------- /tests/Extensions/UserExtensionsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/tests/Extensions/UserExtensionsTest.php -------------------------------------------------------------------------------- /tests/Extensions/phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/tests/Extensions/phpunit.xml -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/Unit/JsonDriverTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/tests/Unit/JsonDriverTest.php -------------------------------------------------------------------------------- /tests/Unit/TranslatesTraitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/tests/Unit/TranslatesTraitTest.php -------------------------------------------------------------------------------- /tests/Unit/TranslationDriversTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/tests/Unit/TranslationDriversTest.php -------------------------------------------------------------------------------- /tests/Unit/TranslationManagerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/tests/Unit/TranslationManagerTest.php -------------------------------------------------------------------------------- /tests/phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weareneopix/laravel-model-translation/HEAD/tests/phpunit.xml --------------------------------------------------------------------------------