SPATIE

  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Docs Laravel-multitenancy Requirements

Other versions for crawler v4 v3 v2 v1
    • Introduction
    • Support us
    • Requirements
    • Questions and issues
    • Changelog

    Installation

    • Base installation
    • Using a single database
    • Using multiple databases
    • Determining the current tenant

    Basic usage

    • Automatically determining the current tenant
    • Working with the current tenant
    • Making queues tenant aware

    Advanced usage

    • Ensuring a current tenant has been set
    • Looping over a collection of tenants
    • Making Artisan command tenant aware
    • Using a custom tenant model
    • Listening for events
    • Using tenant specific facades
    • Executing code for tenants and landlords

    Using tasks to prepare the environment

    • Overview
    • Creating your own task
    • Switching databases
    • Switching route cache paths
    • Prefixing cache

You are viewing the documentation for an older version of this package. You can check the version you are using with the following command:

composer show spatie/laravel-multitenancy

Requirements

This package requires PHP 8.0+ and Laravel 8.0+.

Support us
Questions and issues
Help us improve this page
Flare

An error tracker especially made for Laravel

Help us improve this page
  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Kruikstraat 22, Box 12
2018 Antwerp, Belgium
info@spatie.be
+32 3 292 56 79
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter
  • Bluesky
  • Mastodon
  • YouTube
  • Privacy
  • Disclaimer

+32 3 292 56 79

Our office is closed now, email us instead

    Enter a search term to find results in the documentation.