- What is savannabits/charaza-ui-tenancy used for?
- It is a tenancy add-on for Charaza UI that adds tenant-aware administration to Laravel applications. It lets you manage tenants, switch tenant context, and organize tenant-scoped resources from the Charaza UI dashboard. It is the multi-tenant version of the Charaza UI Admin Code Generator and scaffolder.
- How do I install charaza-ui-tenancy in a Laravel app?
- Install it with Composer alongside the base Charaza UI package, then follow the repository README for publishing configuration and migrations. Run your database migrations after publishing any package assets. Because setup details can change between releases, always use the installation steps in the README for your installed version.
- Does charaza-ui-tenancy require savannabits/charaza-ui?
- Yes. Charaza UI Tenancy is described as a tenancy add-on for Charaza UI, so it builds on the base Charaza UI package. You should install and configure Charaza UI before adding the tenancy layer. Check the package composer.json for the exact dependency constraints.
- Which Laravel versions are supported by charaza-ui-tenancy?
- The provided overview does not list explicit Laravel version constraints, so check the package composer.json and README before installing. Because it is a Charaza UI add-on, use a Laravel version supported by the base package. Review recent releases if you need confirmation for a specific Laravel major version.
- How does tenant switching work in Charaza UI Tenancy?
- The package adds tenant context switching to the Charaza UI administration experience so you can work within a selected tenant. The exact switching behavior depends on your tenancy configuration and the underlying application setup. Review the package configuration and README to confirm how tenant resolution and context are persisted.
- Can I generate tenant-scoped CRUD resources with this package?
- Yes, the package is presented as a multi-tenant version of the Charaza UI Admin Code Generator and scaffolder. It is intended for organizing and generating tenant-scoped resources from the dashboard. Confirm the current generator options in the README because scaffolding features may evolve between releases.
- Is charaza-ui-tenancy compatible with Stancl Tenancy or spatie/laravel-multitenancy?
- The provided package overview does not name a specific tenancy backend, so compatibility should be verified in the README and configuration files. Charaza UI Tenancy focuses on tenant-aware administration and tenant context switching rather than replacing your tenancy implementation. Check the repository issues or source before committing to a particular tenancy package.
- How should I test tenant isolation when using Charaza UI Tenancy?
- Write feature tests that set a tenant context, create records for that tenant, and assert that another tenant cannot access them. If your application uses separate tenant databases, include migration and connection tests for each tenant. Also test dashboard actions such as switching tenants and generating tenant-scoped resources.
- What should I review before using charaza-ui-tenancy in production?
- Review the published migrations, tenant resolution rules, authorization policies, and how sessions or queues handle tenant context. Back up your database and test tenant switching and resource scaffolding in staging first. Also confirm that your chosen Laravel and Charaza UI versions match the package requirements.
- How is charaza-ui-tenancy maintained and what are the alternatives?
- It is maintained under the SavannaBits GitHub organization, so check the repository releases and issues for current activity. Alternatives include using the base Charaza UI package with your own tenancy integration or building custom tenant administration around a Laravel tenancy package. Evaluate the repository activity and documentation against your project needs.