Download the PHP package byteflick/laravel-domain-localization without Composer
On this page you can find all versions of the php package byteflick/laravel-domain-localization. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download byteflick/laravel-domain-localization
More information about byteflick/laravel-domain-localization
Files in byteflick/laravel-domain-localization
Package laravel-domain-localization
Short Description A Laravel package facilitating efficient locale determination based on domain names, simplifying multi-language website development.
License MIT
Homepage https://github.com/byteflick/laravel-domain-localization
Informations about the package laravel-domain-localization
Domain-Based Localization for Laravel
Introducing "Domain-Based Localization for Laravel" – a powerful Laravel package designed to streamline the localization process for multi-language web applications. With seamless integration, this package empowers developers to effortlessly assign locales based on domain names, simplifying the management of language variations across diverse web environments. Experience streamlined localization management and enhanced user experiences with Domain-Based Localization for Laravel.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Note: If you set the mode to strict
then if the middleware cannot find a locale it aborts the request.
Usage
Step 1: Publish the Config File
Publish the config file via the command below and configure it according to your needs.
Step 2: Apply the Middleware
On Specific Routes Only
You can add the middleware to individual routes or apply it via a route group.
Globally For Laravel 11
Append the middleware to your default middlewares into your bootstrap/app.php
via the code below.
Globally For Laravel 10
Add the middleware to your default middlewares into your App\Http\Kernel.php
via the code below.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-domain-localization with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0