You are leaving WordPress, and the hard part isn't the blog posts. It is the pages. The homepage, the services page and the pricing page were built in Gutenberg with columns, groups, covers and buttons. A Laravel page builder has to hold those layouts, and your editors have to be able to change them after launch.
Here is the quick answer. Gutenberg saves every page as HTML with block comments around each block, and those comments carry the settings as JSON. That structure maps well onto LaraBuilder, the block editor in Lara Dashboard. Most common core blocks have a direct match. The rest, mainly covers, galleries and synced patterns, need a small decision each. For a handful of pages, rebuild by hand in the builder. For dozens, parse the block tree and write LaraBuilder's JSON with a command.
Disclosure: Lara Dashboard is our own MIT-licensed Laravel CMS and admin. Every LaraBuilder claim below comes from the code and the LaraBuilder docs in the repo, as of December 2026 (v1.5.0, Laravel 13, PHP 8.3+). Core has no one-click Gutenberg importer. This guide shows how to do the job yourself.
Gutenberg already stores your layout as a tree you can read
A Gutenberg page is not a blob of HTML. Each block opens with a comment like
<!-- wp:image {"sizeSlug":"large"} --> and closes with <!-- /wp:image -->. The JSON in the opening comment holds the block's attributes. Dynamic blocks, such as Latest Posts, store only a self-closing comment with attributes and no HTML. The block editor handbook explains the format.WordPress can parse that for you. The parse_blocks() function returns an array where each block has
blockName, attrs, innerBlocks, innerHTML and innerContent. Nested layouts, like columns inside a group, come back as nested innerBlocks. That is exactly the shape you need to rebuild the page somewhere else.Get the raw markup, not the rendered HTML. The WXR export from Tools, Export keeps the raw post content with its block comments. The REST API returns
content.rendered to the public, which has lost the comments. You only get content.raw with an authenticated request in the edit context. Our guide to importing WordPress posts, pages and media into Laravel covers both export routes, so we won't repeat them here.LaraBuilder saves pages as JSON blocks and renders them on the server
LaraBuilder stores a page in the
design_json column of the posts table. Each block is an array with an id, a type and a props object, and layout blocks keep their children inside props. When the page is shown, Post::renderContent() renders from design_json through each block's render.php. A fix to a block renderer reaches every page that uses it.The core ships 37 blocks in
resources/js/lara-builder/blocks. Each one declares where it works: page, email or campaign. Our overview of how LaraBuilder works covers the editor itself: undo, slash commands, device preview and the SEO drawer.Most core Gutenberg blocks have a direct LaraBuilder match
This is the map we would use. The right-hand column lists LaraBuilder block types from the repo.
| Gutenberg block | LaraBuilder block | Notes |
|---|---|---|
| Paragraph | Text or Text Editor | Inline links and bold carry over |
| Heading | Heading | Keep the level, h1 to h6 |
| List | List | Bullet or numbered |
| Quote, Pullquote | Quote | Citation goes in the author field |
| Image | Image | Bring alt text and the link |
| Buttons, Button | Button Group, Button | Map colors by hand |
| Columns, Column | Columns | 1 to 6 columns, stack on mobile |
| Group | Section | Solid or gradient background |
| Media and Text | Columns with Image and Text | Two columns |
| Table | Table | Headers and rows as plain cells |
| Details | Accordion | Several details blocks become one accordion |
| Code, Preformatted | Code, Preformatted | Code is escaped, so samples stay intact |
| Separator, Spacer | Divider, Spacer | Direct |
| Social Icons | Social | Re-enter the profile links |
| Latest Posts | Latest Posts | Dynamic on both sides |
| YouTube embed | Video | YouTube and Dailymotion URLs are detected |
| Custom HTML | HTML | Sanitized on save and load |
LaraBuilder also has blocks Gutenberg core doesn't, such as Pricing Table, Testimonial, Steps, Tabs, Countdown, Stats Item and Table of Contents. If the old page faked a pricing table with three columns and a pile of paragraphs, this is a good moment to replace it with the real block.
Covers, galleries and synced patterns need a decision
A few common Gutenberg blocks have no one-to-one match. Decide for each one before you write code, so the converter doesn't guess.
Cover. LaraBuilder's Section block takes a solid color or a gradient background, not a background image. You have three options. Use a Section with an Image block above the heading. Use a gradient that matches the brand. Or write a small custom hero block with
php artisan make:block that takes an image prop. If many pages use covers, the custom block is the cleanest answer.Gallery. There is no gallery block in core. For a small grid, use Columns with an Image block in each column. For a real lightbox gallery, build a custom block, ideally inside a module so it ships with the feature.
Synced patterns. Gutenberg's synced patterns, which used to be called reusable blocks, appear in the content as a
core/block reference with a ref ID pointing at another post. Each one is something your team repeats on purpose: a call to action, a newsletter box, a contact strip. Turn each into a custom LaraBuilder block. Edit the block's renderer once and every page that uses it updates, which is the same promise synced patterns made.Other embeds and shortcodes. The Video block recognizes YouTube and Dailymotion links. For any other provider, put the embed in an HTML block. The sanitizer keeps iframes only when they point at an https URL. Shortcodes from plugins have no meaning in Laravel. Replace each one with a real block, or keep the rendered HTML from the old site in an HTML block as a stopgap.
Third-party blocks. Plugin blocks store their own attributes. Treat each as a design decision. Our 20-plugin map shows where common plugin features live.
A converter is one export script and one Artisan command
For more than a dozen pages, automate it. The plan has two halves.
Export the block tree from WordPress. Let WordPress do the parsing, because it knows its own format. A short PHP file run with wp eval-file can loop over your pages, call
parse_blocks() on each post_content, and write one JSON file with the slug, title, parent and block tree of every page. Drop empty blocks, where blockName is null and the HTML is only whitespace.Build LaraBuilder JSON in Laravel. Write an Artisan command in a small throwaway module. Our guide to building a Laravel module step by step shows the layout. The command reads the JSON file and walks each tree with a recursive function: one
match on blockName, one LaraBuilder block out.You don't have to hand-write the block arrays.
App\Services\Builder\BlockService already has helpers that return correctly shaped blocks: heading(), text(), image(), button(), listBlock(), quote(), table(), columns(), section(), video(), divider() and spacer(). For Columns, pass an array of child arrays, one per column. For Section, pass the children and the helper wraps them the way the editor expects.Save the result as
['blocks' => $blocks, 'version' => 1] in design_json. That column uses a sanitizing cast, so scripts, event handlers and javascript: links are stripped on the way in. Use updateOrCreate on the slug so you can run the command again after you fix a mapping. For anything the match doesn't know, write an HTML block with the original innerHTML and log the block name. That log is your to-do list.The MCP converter is fine for text, not for layouts
Lara Dashboard's MCP server has a create-post tool that accepts HTML and converts it into blocks. We use it for articles like this one. Know what it handles before you point it at Gutenberg pages.
The converter is
BlockService::buildBlocksFromHtml(). It maps h1 to h6, paragraphs, bullet and numbered lists, blockquotes, and div, section and article wrappers. List items keep only their text, so links and bold inside them are lost. A top-level figure, image or table is dropped. Inside a div, it falls back to a single Text block. Columns, buttons and covers don't survive as layout.So use MCP for text-heavy pages, such as an about page or a policy page, and check each result in the builder. Use the command above, or rebuild by hand, for real layouts. Our plain-English guide to MCP servers for a CMS explains the tools and permissions.
Don't import into the content column and stop there
There is a tempting shortcut. Put the old rendered HTML into the
content column and leave design_json empty. The page will display, because renderContent() falls back to content when there is no design JSON.The catch is the editor. The builder loads its initial blocks from
design_json. A page that only has legacy content opens with no blocks to edit. That is fine for an archive page nobody will touch. It is a trap for a homepage your marketing team edits every week. Convert the pages people edit, and leave the legacy shortcut for pages that are frozen.Trade-offs: when not to convert Gutenberg layouts
Converting is not always worth it. Skip it, or delay it, in these cases.
- You have fewer than ten designed pages. Rebuilding them by hand in the builder is faster than writing and testing a converter.
- The site uses a third-party page builder instead of Gutenberg. Its layout lives in its own format, so you rebuild by hand.
- The redesign is happening anyway. Converting old layouts block for block only preserves a design you are about to replace.
- Pages depend on cover images everywhere and nobody can run a Vite build. You won't be able to add the custom hero block that covers need.
- The page is really an app screen, like a booking form or calculator. Build it as a Livewire component, not as builder blocks.
If you are still weighing the bigger move, our decision guide on WordPress, headless or Laravel is the better starting point.
Self-check before you switch the homepage
- Every designed page is listed with its Gutenberg blocks counted by type.
- Covers, galleries, synced patterns and shortcodes each have a written decision.
- Each synced pattern is now one custom block, not copied HTML.
- The converter logs unknown block names, and the log is empty or accepted.
- Every converted page opens in the builder with editable blocks.
- Pages are checked in Desktop, Tablet and Mobile preview.
- Image alt text, button links and heading levels match the old page.
- No raw shortcodes or wp-content/uploads URLs remain.
- Slugs match the old URLs, or a 301 redirect is in place.
- The command runs twice without creating duplicate pages.
For the rest of the move, use our WordPress to Laravel migration checklist.
Verdict
Gutenberg did half the work for you. Your pages are already stored as a tree of typed blocks with JSON settings, and LaraBuilder stores pages the same way. Most core blocks translate directly. Covers, galleries and synced patterns are a few deliberate choices, usually a custom block or two. A WordPress export script plus one idempotent Artisan command handles the rest, and your editors keep a visual builder after launch.
If you are planning that move, try Lara Dashboard on a fresh install. Rebuild your busiest page by hand first. You will learn the mapping faster than any table can teach it.
FAQ
Can LaraBuilder import Gutenberg pages directly?
Not in core as of v1.5.0. There is no Gutenberg importer. You rebuild pages by hand in the builder or write a small converter that turns parse_blocks() output into LaraBuilder JSON.
Where does LaraBuilder store page layouts?
In the design_json column of the posts table, as a list of blocks with an id, a type and props. Pages are rendered from that JSON on the server through each block's render.php file.
What replaces Gutenberg synced patterns?
A custom LaraBuilder block made with php artisan make:block. Change the block's renderer once and every page that uses it updates, just as a synced pattern did.
Is there a cover block with a background image?
Not in core. The Section block supports solid and gradient backgrounds. Use an Image block inside a Section, or build a small custom hero block that takes an image.
Can I paste Gutenberg HTML into an HTML block?
Yes, as a stopgap. The HTML block is sanitized, so scripts, event handlers and javascript: links are removed, and iframes are kept only for https URLs. Editors can't change that markup visually, so convert important sections to real blocks.
Do I need React to convert pages?
No. A converter is PHP: a WordPress export script and a Laravel command. You need React and a Vite build only to create new custom blocks, such as a hero or a gallery.