quintenbuis/laravel-localization

This package is abandoned and no longer maintained. No replacement package was suggested.

Localize your laravel application via subdomain.

0.0.3 2021-06-15 15:33 UTC

This package is auto-updated.

Last update: 2021-12-15 16:27:23 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Localize your application with a subdomain using a middleware.

Installation

You can install the package via composer:

composer require quintenbuis/laravel-localization

You can publish the config file with:

php artisan vendor:publish --provider="Quintenbuis\Localization\LocalizationServiceProvider" --tag="localization-config"

This is the contents of the published config file:

return [
    'allowed_locales' => ['en'],
];

Usage

All that is needed is to add the Localize middleware to your application.

// app/Http/Kernel.php

protected $middleware = [
    \Quintenbuis\Localization\Middleware\Localize::class,
];

Testing

composer test

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.