Download the PHP package h1ch4m/multi-lang without Composer
On this page you can find all versions of the php package h1ch4m/multi-lang. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download h1ch4m/multi-lang
More information about h1ch4m/multi-lang
Files in h1ch4m/multi-lang
Package multi-lang
Short Description A multi language solution for Laravel applications with database-driven translations, automatic language detection.
License MIT
Informations about the package multi-lang
H1ch4m/MultiLang π
A multi language solution for Laravel applications with database-driven translations, automatic language detection.
Table of Contents
- H1ch4m/MultiLang π
- Table of Contents
- β¨ Features
- π Requirements
- βοΈ Installation
- Config files
- Migrations
- Views
- Routes
- βοΈ Configuration
- Config Files
- π§ Advanced Usage
- Custom route
- if you published the routes
- if you want to use package routes
- π§° Helpers
- Available helper functions
- πΊοΈ Navigation
- π§ Middleware
- π Service Provider
- π Model Setup Example
- π License
β¨ Features
- ποΈ Database-driven language management
- π Automatic language detection middleware
- βοΈ Customizable configuration files
- π Language switcher UI component
- π¦ Built-in migration system
- π Asset publishing support
- π View customization
- π οΈ Helper functions
- π Event system integration
- π§© Modular architecture
π Requirements
- PHP 8.0+
- Laravel 9.x or later
- spatie/laravel-translatable 6.6 or later
- Composer
- Database (MySQL)
βοΈ Installation
-
Install via Composer:
- Publish required components:
Config files
Migrations
Views
Routes
- Run migrations:
βοΈ Configuration
Config Files
Configure these published files in directory:
-
- Manage available languages
-
- Configure package layouts and paths
-
- add locale and fallback language
π§ Advanced Usage
Custom route
if you published the routes
if you want to use package routes
π§° Helpers
Available helper functions
πΊοΈ Navigation
π§ Middleware
in your frontend (Store, Blog...) use this middleware
π Service Provider
in your service provider add it if you are using , you will not need to call getTranslation or setTranslation (the language will add automatically)
π Model Setup Example
your Model should be look like this
The types that we support are , , ,
π License
This package is open-sourced software licensed under the MIT license.
All versions of multi-lang with dependencies
illuminate/support Version >=8.0
spatie/laravel-translatable Version >=6.6