Looking to hire Laravel developers? Try LaraJobs

laravel-multisite maintained by gingerminds

Description
Multisite & Multi Languages functionalities for Laravel projects
Author
Gingerminds
Last update
2026/09/29 11:35 (dev-master)
License
Links
Downloads
679

Comments
comments powered by Disqus

Laravel Multisite

Multi-site and multi-language support for Laravel projects built on gingerminds/laravel-core. It provides:

  • Site and Language models, with an admin CRUD for managing both.
  • SiteContext / LanguageContext services 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) and Language (nested only).

Requirements

  • PHP ^8.4
  • gingerminds/laravel-core ^4.7

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