Support the ongoing development of Laravel.io →
Architecture
Last updated 2 years ago.
0

kingofseo said:

Hello,

I want to make a new project and would like to ask what would the best way to make multiple applications with laravel.

Each Application should have their own folder with Routes, Controllers, Views.

Would this good if i would create different folders under App/Http like App/Http/Blog, App/Http/Forum .. ?

Regards

If you want to create totally different application it's better if you just create a new installation of laravel

0

if each application shares some common classes (like Models, migrations, utility classes) and only differs on Routes, Controllers, Views you should put the common classes into a seperate composer library (see http://www.darwinbiler.com/creating-composer-package-library/ )

then make that as dependency of each of those Laravel applications. that way, each time you need to update some migration files or model, you only need to update it once in the composer library and then perform composer update to apply the change in all the applications.

Upon deployment, If you want to totally seperate each apps (seperate cpu/disk/memory etc) you can use Dokku (http://dokku.viewdocs.io/dokku/) to provide a heroku-like deployment process and container-based isolation.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

kingofseo kingofseo Joined 2 Jul 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.