mantax559/laravel-translations

1.9.5 2024-11-13 06:59 UTC

This package is auto-updated.

Last update: 2025-03-13 07:44:17 UTC


README

GitHub release (latest by date) GitHub release (latest SemVer including pre-releases) Packagist PHP from Packagist

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.