Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lee-to/laravel-model-localization
https://github.com/lee-to/laravel-model-localization
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lee-to/laravel-model-localization
- Owner: lee-to
- License: mit
- Created: 2020-12-14T10:24:00.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-23T17:00:17.000Z (about 3 years ago)
- Last Synced: 2024-04-23T16:22:08.511Z (7 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-model-localization
## 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"],