Reputation: 314
I've been doing further research about choosing a right framework for our server side processes,
So I camed with the question:
Thanks in advance,
Upvotes: 0
Views: 241
Reputation: 11485
If you want to use the same web server then of course you can set up two sites admin.mysite.com
and www.mysite.com
Each site will be served by a different folder and in that folder you can have your Phalcon, Laravel or any other installation you wish.
You could also change the boostrapping method i.e.
if ('/admin' === $url} {
// Bootstrap Laravel
} else {
//Bootstrap Phalcon
}
but that might become very difficult to maintain - you will also need to ensure that security is at max i.e. if you have login on the Phalcon side you need to reauthenticate on the Laravel side etc.
Upvotes: 1
Reputation: 116
Of course, you can. Just configure Nginx for two separated projects. If you need to operate main (Phalcon) project's data from admin (Laravel), you can use one database configuration in Laravel and Phalcon projects. Or as said Rodrane, you can create Oauth server in Phalcon project to manipulating data from admin without handling the same database connection.
Upvotes: 1