gingerminds/laravel-multisite

Multisite & Multi Languages functionalities for Laravel projects

Maintainers

Package info

github.com/gingerminds/laravel-multisite

pkg:composer/gingerminds/laravel-multisite

Transparency log

Statistics

Installs: 24

Dependents: 1

Suggesters: 0

Stars: 0

2.3.1 2026-07-09 15:19 UTC

This package is auto-updated.

Last update: 2026-07-09 15:20:19 UTC


README

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 ^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
  • ContextSiteContext, LanguageContext, and how "current" is resolved
  • TraitsTranslatableModelTrait, TranslationModelTrait, LanguageContextedModelTrait, SiteContextedModelTrait, BuildsTranslationAttributesTrait
  • Components — the translations form component
  • API — admin routes and API Platform endpoints