gingerminds / laravel-multisite
Multisite & Multi Languages functionalities for Laravel projects
2.3.1
2026-07-09 15:19 UTC
Requires
- php: ^8.4
- gingerminds/laravel-core: ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- larastan/larastan: ^3.8
- orchestra/testbench: ^10.0
- phpdocumentor/type-resolver: ^1.8
- phpstan/phpstan: ^2.0
- rector/rector: ^2.0
- squizlabs/php_codesniffer: ^3.0
README
Multi-site and multi-language support for Laravel projects built on gingerminds/laravel-core. It provides:
SiteandLanguagemodels, with an admin CRUD for managing both.SiteContext/LanguageContextservices that resolve "the current site" / "the current language" for a request.- Traits your own models can use to scope queries by site, scope by attached language, or attach a translation model.
- A generic tabbed Blade component for editing per-language fields.
- API Platform endpoints for
Site(read-only) andLanguage(nested only).
Requirements
- PHP ^8.4
gingerminds/laravel-core^2.8
Quick start
composer require gingerminds/laravel-multisite php artisan migrate
Then register the package's models with API Platform (see Installation).
Documentation
- Installation
- Configuration
- Context —
SiteContext,LanguageContext, and how "current" is resolved - Traits —
TranslatableModelTrait,TranslationModelTrait,LanguageContextedModelTrait,SiteContextedModelTrait,BuildsTranslationAttributesTrait - Components — the translations form component
- API — admin routes and API Platform endpoints