Implement the discourse forum in the laravel 11 project

AI-generated summary

The discussion revolves around implementing a Discourse forum in a Laravel 11 project. suraj.singh seeks guidance on integrating Discourse into his project, but merefield notes that it’s not straightforward due to different tech stacks.

However, RGJ offers an alternative solution by running Discourse in a subfolder and using the spinen/laravel-discourse-sso PHP package for single sign-on. This approach can create a seamless experience between the Laravel app and Discourse.

suraj.singh asks about changing the root domain name to implement Discourse in his project, but RGJ suggests contacting support as the issue is related to a subdomain setup.

Later, suraj.singh faces an issue with authenticating users through the Discourse connect URL. He receives the SSO and signature but lacks user details. The discussion awaits a solution for this problem.

i want to implement the discourse forum in my laravel 11 project how i can do it what should i need to get it from admin and set up in my laravel project can anyone told me

That’s not going to work.

Discourse is on a completely different tech stack.

Some people have managed to use Discourse in an iFrame, but generally that’s not recommended.

Usually you put Discourse on a subdomain and can link User accounts using SSO.

You can run Discourse in a subfolder and set up single sign on between your Laravel application and Discourse using the spinen/laravel-discourse-sso PHP package.

If you replicate the header between your Laravel app and Discourse and use the same colors and fonts you can make this nearly seamless, especially if you implement some Javascript in your Laravel app to pull the notifications from Discourse.

Hi Discourse Team,

Currently the site is hosted by the Discourse ,how i can change the root domain name to https://forum.tracalendar.com to implement the discourse in my project, i have try to do the change domain in the admin but it is saying that to ask the this support please give me the path to change it.

regards,
Suraj

If it tells you to contact support then you should contact support.

Note: I’m not support :wink:
Note: That’s not a subfolder, that’s a subdomain. A subfolder will be https://www.example.com/forum.

when i click on my community login button then it is redirecting to my discourse connect url ,that is fine ,and in my discourse connect url method i am getting sso and sig but how i can authenticate my users, because in the request i am only getting the sso and sig how i can get my user detail ,can anyone help me to get it done.