When I first came into contact with Laravel, I felt that this framework was good, but I had a question: If I want multiple sites to share some of the model layer and framework stuff, for example, yii supports the configuration of the moudel module, does Laravel support this configuration? How can this problem be solved? When I first came into contact with Laravel, I felt that this framework was good, but I had a question: If I want multiple sites to share some of the model layer and framework stuff, for example, yii supports the configuration of the moudel module, does Laravel support this configuration? How can this problem be solved?
Reply content:
When I first came into contact with Laravel, I felt that this framework was good, but I had a question: If I want multiple sites to share some of the model layer and framework stuff, for example, yii supports the configuration of the moudel module, does Laravel support this configuration? How can this problem be solved?
Refer to the routing document to see if it meets your requirements.
Http://www.golaravel.com/docs/4.1/routing/
Sub-folders under controller can be configured with namespaces and routes.
Application specific les in Laravel 4
Laravel 4-Simple Modules
See the two projects.
Yes, but not yii.
Maybe this is the answer you are looking for: https://github.com/pingpong-labs/modules