Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SharjeelNadeem466's avatar

PHP website in laravel

Hi everyone, 1- I want to run multiple php websites under the main domain of the Laravel website for example: for the Laravel website, I have a domain laravel-website.com for php websites I want laravel-website.com/php-website1 laravel-website.com/php-website2 laravel-website.com/php-website3

2- I want to implement single login functionality (without SSO. like user session data sharing on all websites). Users will log in once on the main Laravel website "laravel-website.com" and can access other websites.

3- all websites have different databases

please help me sort out this problem. if you have any better solution, please share. thanks in advance

0 likes
5 replies
Snapey's avatar

all websites have different databases == all websites have their own authenticaton schemes

SharjeelNadeem466's avatar

@Snapey all php-websites have their own DBs but their authenticity is from the main website (laravel-website.com). so i was thinking to make remove the api authentication and use laravel session or auth facade to authenticate users. Basically the main system is to manage the company staff, and sub websites (php websites) are for to manage company projects, quotions etc.

SharjeelNadeem466's avatar

@jlrdw i have to work a lot if i make it one website because for this i have to convert php website code to laravel

jlrdw's avatar

@SharjeelNadeem466 laravel is a php framework, what would you have to convert? You realize regular pdo can be used in laravel, right? And regular php for the template engine.

I have even gone from a cakephp site to laravel and it may take me an evening to do.

But just my thoughts on it.

Please or to participate in this conversation.