简体   繁体   English

如何在管腔中使用laravel包?

[英]How to use laravel package in lumen?

I want to use a laravel package named thinksaydo/envtenant from githup link 我想从githup链接使用一个名为thinksaydo/envtenant的laravel软件包

This package for creating multitenancy software in laravel , but i can't install this package in lumen 该软件包用于在laravel中创建多租户软件,但我无法在流明中安装此软件包
How can install this package and use it in lumen? 如何安装该软件包并在流明中使用它?

There are so many things you'll need for Tenancy that Lumen doesn't provide out of the box. 租赁需要很多东西,Lumen不会提供现成的东西。 You'll need to enable Facades, setup your Providers, and Lumen doesn't provide session support out of the box . 您需要启用Facades,设置您的提供者,并且Lumen doesn't provide session support out of the box

The purpose of Lumen is to provide a simple, fluid, stateless API that returns a Data Interchange Language . Lumen的目的是提供一种simple, fluid, stateless API that returns a Data Interchange Languagesimple, fluid, stateless API that returns a Data Interchange Language What you're doing here is attempting to run a fully-functional SaaS service on a Micro-API framework; 您在这里正在尝试在Micro-API框架上运行功能齐全的SaaS服务。 that's not going to work. 那是行不通的。

You need to be using Laravel to accomplish the SaaS model, so it can know about Tenancy. 您需要使用Laravel来完成SaaS模型,以便它可以了解租户。

In Lumen, the only thing you should be looking at is an API key in your request. 在流明中,您唯一需要看的就是您的请求中的API密钥。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM