在 Laravel 8 项目上安装 hyn/multi-tenant 时出错

Error to install hyn/multi-tenant on Laravel 8 project

我正在尝试在 Laravel 8 项目中安装 hyn/multi-tenant 包。但是在执行composer require hyn/multi-tenant命令时,出现如下错误:

 Problem 1
- Installation request for laravel/framework (locked at v8.11.2, required as ^8.0) -> satisfiable by laravel/framework[v8.11.2].
- hyn/multi-tenant 5.6.0 requires laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev].
- hyn/multi-tenant 5.6.1 requires laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev].
- hyn/multi-tenant 5.6.2 requires laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev].
- hyn/multi-tenant 5.6.3 requires laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev].
- hyn/multi-tenant 5.6.4 requires laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev].
- hyn/multi-tenant 5.x-dev requires laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev].
- Conclusion: don't install laravel/framework 7.x-dev
- Installation request for hyn/multi-tenant ^5.6 -> satisfiable by hyn/multi-tenant[5.6.0, 5.6.1, 5.6.2, 5.6.3, 5.6.4, 5.x-dev].

有人知道如何解决吗?

这意味着该项目尚不支持 Laravel 8。如果您查看 GitHub 中的源代码,您还可以看到最新的提交是几个月前的。 https://github.com/tenancy/multi-tenant

我建议使用另一个包来满足您的租赁需求,因为这个包似乎维护得不好。

最近我一直在用 https://tenancyforlaravel.com/ 做一些测试,看起来很有希望。