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

Snapey's avatar
Level 122

Laravel inside wordpress

I know that there are blog posts out there for using Wordpress as a 'headless' content engine for Laravel sites, but I want to do it the other way around.

An old customer for whom I built a Wordpress site many years ago wants it rebuilt but with a bunch of custom functionality.

What I would like to do is to be able to allow them to blog etc through Wordpress as they have done, but be able to pull content into wordpress pages from a Laravel application.

The application will be a course content creator and calendar (but not an LMS - just a marketing site). I know I could use custom post types etc but I just can't face having to immerse myself into that painful world of trying to glue together plugins and themes because there always ends up being compromises.

I also don't want to just throw in an iFrame because that won't really give the navigation required (ie clicking on links in the iFrame just causes the frame content to change and does not integrate with wordpress menus)

Anyone got any bright ideas?

0 likes
3 replies
meeshka's avatar

@snapey

I've a site in production with similar setup. WordPress is the main site and serves all content pages where as Laravel takes care of payments, user and admin dashboards.

I also have written a simple WordPress plugin that talks to Laravel. In case, if laravel needs to function independently on a different domain like laravel.mysite.com it would still work.

Further, laravel app user WP's api to create user accounts for a special purpose.

1 like

Please or to participate in this conversation.