mantax559 / laravel-translations
Laravel Translations
1.9.5
2024-11-13 06:59 UTC
Requires
- php: ^8.2
- laravel/framework: ^10.0|^11.0
- mantax559/laravel-helpers: ^1.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^8.0
README
Laravel Translations
Installation & Setup
You can install the package via composer:
composer require mantax559/laravel-translations
The package will automatically register its service provider.
Customisation
Routes
To allow the user to change the language, add this route:
Route::get('language/{locale}', [\Mantax559\LaravelTranslations\Controllers\LanguageController::class, 'change'])->name('language.change');
Tests
You can run tests with the command:
vendor/bin/phpunit
License
The MIT License (MIT). Please see License File for more information.