Ask Your Question

Askbot for Laravel project

asked 2017-05-18 07:18:43 -0600

julymount gravatar image

We have website developed on PHP with Laravel framework. Is there any way to use askbot for our website?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-05-22 08:57:41 -0600

Evgeny gravatar image

In a way it's possible: deploy Askbot on your server perhaps "mounted" at some sub-url If necessary it is possible to set up common authentication as authentication is shared via domain-specific cookies. Common authentication will require some custom coding - I'd start researching how a Django site can be integrated with Laravel - as there might be some code snippets/libraries that solve this, after that I'd look at the documentation/code of Django authentication.

Perhaps you could also read from Askbot database from the PHP after figuring out the database structure (although I'd keep Askbot and other components separate, if possible).

You'll end up with a system that runs a Django app and Laravel on the same server.

Another option - install Askbot on one server and give it a subdomain. This way you'll still be able to use common authentication cookies by setting the session cookie domain (in Django this variable is called SESSION_COOKIE_DOMAIN) to ''; the leading dot means that the cookie will be shared with all subdomains.

edit flag offensive delete link more



hincent gravatar imagehincent ( 2017-07-22 23:06:26 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-05-18 07:18:43 -0600

Seen: 295 times

Last updated: May 22 '17

Related questions