lee-to / laravel-model-localization
Laravel model localization
0.5
2021-08-23 16:59 UTC
Requires
- php: ^7.3|^8.0
- ext-curl: *
- ext-json: *
Requires (Dev)
- mockery/mockery: ^1.0
- phpunit/phpunit: 8.5.x-dev
This package is auto-updated.
Last update: 2024-10-24 00:03:49 UTC
README
Install
-
composer require lee-to/laravel-model-localization
-
php artisan vendor:publish --provider="Leeto\Localization\Providers\LocalizationServiceProvider"
-
php artisan migrate
Integration with laravel-admin
- set admin path in admin config
- add extension to admin config 'extensions' => [ \Leeto\Localization\Admin\Extensions\LocalizationExtension::class ],
- add to admin route Route::resource('languages', \Leeto\Localization\Admin\Controllers\LanguagesController::class);
- add to admin menu ["class" =>\Leeto\Localization\Admin\Controllers\LanguagesController::class, "title" => "Languages"],