meeshka's avatar

WordPress and Laravel together

Hi,

Background

I'm working on a new project and using WordPress to publish content and would like to use a responsive theme to render the content.

I want to use Laravel to power the custom ecommerce (REST API + billing pages).

I have WordPress working and got Laravel installed inside a sub-folder called /my_api/. WordPress is accessible from http://localhost:1234/ and laravel via http://localhost:1234/my_api/public/

Questions/Things I am not sure of or stuck with

  1. Is exposing laravel like below ok? http://localhost:1234/my_api/public/

  2. Is there a way to load WordPress header/footer from within a Laravel view?

0 likes
4 replies
meeshka's avatar

@phleobon That's right. Researching on better ways to handle this. Maybe I should proxy?! Not sure, proxy may cause session/cookie related issues...

meeshka's avatar

The more I research and think about it, head-less WordPress and Laravel being the main site handler will be the best approach. Any more insights anyone?

Please or to participate in this conversation.