Home > Backend Development > PHP Tutorial > Laravel 支持多站点配置么?

Laravel 支持多站点配置么?

WBOY
Release: 2016-06-06 20:46:28
Original
1389 people have browsed it

刚接触Laravel,感觉这个框架不错,但有个疑问就是,如果我想多个站点共用一些model层、框架的东西,比如yii支持moudel模块的配置,Laravel支持这种配置么?如果有这种需求一般都是怎么解决的?

回复内容:

刚接触Laravel,感觉这个框架不错,但有个疑问就是,如果我想多个站点共用一些model层、框架的东西,比如yii支持moudel模块的配置,Laravel支持这种配置么?如果有这种需求一般都是怎么解决的?

乜可以看看路由这节文档,看看能否满足你的要求
http://www.golaravel.com/docs/4.1/routing/

controller下设置子文件夹,配合命名空间+路由可以实现

Application specific modules in Laravel 4
Laravel 4 - Simple Modules

可以看看这两个项目

支持,但是没有yii那么好用

也许 这是你要找的答案: https://github.com/pingpong-labs/modules

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template