• Dev
  • Combine Flarum with Laravel authentication

Hi there!

After spending 3 evenings building my own forum for our project I found Flarum, and I really like it. However I'm developing a website using Laravel and social login. So I was wondering if it is possible to either share a session and user between my Laravel application and Flarum. Or at the very least create a Flarum user and log him in whenever an user logs into the Laravel application.

Creating the user shouldn't be a problem, because both applications are on the same database. The hardest part is to log a user in and create the password for his Flarum account. Best way to do this is to create something that syncs the session both ways. User logs into Laravel -> logs into the forum also. And the other way around.

In short I am trying share a user/session between my Laravel application and Flarum, is it possible?

Thanks everyone for their time!