GuidePremium
Import from another blog into CoullWorks Blog for Laravel
The import wizard step by step: every source option, the dry run report, the live run, re-runs, history and how old addresses are redirected.
Updated 16 November 2026Back to the package pageBuy
The import module reads content from another blog into yours. It always offers a dry run first, writes a redirect for the old addresses, and can be run again without making duplicates. You can use it from the Import screens of the admin or from the command line (php artisan cwb:import SOURCE). This page covers both, with the admin first.
Switch it on#
The module is off by default.
- Set
coullworks-blog.import.enabledtotrue(the file isconfig/import.php, merged into the package configuration). - Run the module's migrations (
database/import/migrations). - Run a queue worker. Imports run as queued jobs; with the
syncqueue in development they run at once. - Give the user the ability
blog.import. Without it the Import entry is not shown. - Take a database backup before a live import.
Two settings tune it, both in the configuration file: import.media.timeout (seconds to wait for one image download, 20 by default) and import.flush_every (how often progress counts are written, 100 records by default). Images are downloaded only from public addresses; a private address is refused.
Sources#
| Source | Reads | Maps | Skips | Redirects |
|---|---|---|---|---|
| WordPress | A WXR export file, streamed | Posts, pages, authors, categories, tags, comments, attachments | Other post types | Every permalink becomes a permanent redirect, including dated permalinks outside the blog's paths, on the blog host |
| Ghost | The JSON export | Posts, authors, tags | Members, newsletters | Each post address |
| Markdown folder | .md files with front matter | Title, slug, date, tags, categories, authors | Files with no body | None unless a slug is given |
| Magento blog databases | Magefan, Mageplaza, Mirasvit or Aheadworks tables over a database connection | Posts, categories, tags, authors | Amasty is not supported | Each old route |
| Laravel blog packages | The tables of stephenjude/filament-blog or firefly/filament-blog | Posts, categories, tags | Other packages | Each old route |
The import wizard#

The four steps run along the top: Source, Options, Check, Run. Notice the nine sources, two columns of radio buttons, with WordPress chosen by default.
The Import entry (group Tools) opens a cluster with two tabs: New import and History. New import is a four-step wizard. The current step is kept in the address.
Step 1: Source#
Import into blog#
- Where: first field of the Source step. Required.
- Values: any blog of the install. Default: the default blog.
- What it changes: the blog that receives the content. Only one import can run for a blog at a time; starting a second one says "An import is already running for blog [N]; wait for it to finish."
Import from#
- Where: the radio buttons under it. Required.
- Values: WordPress export (WXR), Ghost (JSON export), Markdown folder, Magefan Blog, Mageplaza Blog, Mirasvit Blog MX, Aheadworks Blog, stephenjude/filament-blog, firefly/filament-blog. Default: WordPress.
- What it changes: which options the next step shows. Each source shows only the options it reads.
Press Next.
Step 2: Options#
The fields depend on the source. They are listed under each source below. Two fields appear for every source:
Language of the content#
- Values: a language code the blog uses, for example
fr. The placeholder is "Blog default". Default: empty, which uses the blog's default language. - What it changes: the language the imported content is stored as. If the blog does not use that language the import is refused: "The blog does not speak [xx]."
Overwrite records edited since the last import#
- Values: On or Off. Default: Off. The hint reads "Off keeps edits made in the panel and reports them as conflicts."
- What it changes: on a re-run, a record that you edited in the admin after the last import is normally left alone and counted as a conflict. Turn this on to overwrite it with the source's version. Leave it off unless you want the source to win.
Leaving this step runs the dry run. Press Next and the package starts a dry run in the background. A source that refuses its options (a missing file, an unknown connection, a folder outside the disk) shows its reason and keeps you on this step.
Step 3: Check, the dry run report#

A dry run of a WordPress file that has not been imported yet. Notice that nothing has been written: the counts say what would happen.
The title reads "Dry run of wordpress: done" (or "Running. This report refreshes while the import runs."). Two tables follow.
- What was created, updated, already there or a problem, per kind of record. One row per kind (author, category, post, tag, comment, redirect), with columns Created, Updated, Already there (shown as "unchanged") and Problems (shown as "conflict or failed").
- Redirects by kind of old address. One row per kind (post, category, tag, author, feed), with Created, Already there, At the old host and Other. At the old host counts addresses on a different host from yours: the import cannot redirect those from this site, and lists them for you.
Below the tables the report lists up to 50 problems, each with its level, the kind, the source id, a code and a message. A line of notices may follow. If there are redirects at the old host, a button Download the external redirect map (CSV) gives you a file of them to load into the old site's server or DNS (the same file as php artisan cwb:import:report --csv).
Read the report. If a count is wrong, press Back and change the options, then Next to run a new dry run. When it looks right, press Next.
Step 4: Run#

One checkbox and one red button. Notice the warning in the hint: an import writes posts, categories, tags, authors and redirects.
I have a database backup#
- Values: ticked or not. Default: not ticked. Required for a live run.
- What it changes: the Run the import button refuses until it is ticked: "Tick the box to confirm that a database backup exists before a live import."
Press Run the import. The live import runs as a queued job. When it finishes, a notification stays on screen: Import finished, "Status: done. Open the report on this page."

The notification appears at the top right. The statuses are done, done with errors, failed, running and queued.

The same flow for a Markdown folder: the backup box is ticked and the notification says Status: done.
The live report has the same two tables as the dry run, now with real counts. When a live run is done a last line reads "Disable the old blog and check that it no longer answers the old addresses before going live."
Run it again#
An import can be re-run. A record that is already imported and has not changed is counted Already there and is not touched, so a second run of the same file changes nothing.

After the first live run, a dry run of the same file reports everything as unchanged: 40 posts, 1 author, 1 category, 1 tag and 44 redirects.
Use a re-run to import an updated export. New items are created, changed items are updated, and items you edited in the admin are left alone unless you chose to overwrite them.
Import history#

Newest first. Notice the Mode badge (Dry run grey, Live orange), the Status and the View report link on every row.
The History tab lists every import of the blog, with columns Job, Source, Mode, Status, Started and Finished. Search looks in the source. Filters: Source, Status (Done, Done with errors, Failed, Running, Queued) and Mode (Dry run, Live). The table refreshes every ten seconds.
View report opens the full report of that job in a slide-over titled "Import #N: source", with a Close button. With no imports the page says "No imports yet" and offers Start an import.
A report is the same two tables you saw in the Check step, kept for later.
Options of each source#
WordPress export (WXR)#

The WordPress options are the longest. Notice that only this source has Import pages as posts.
In WordPress, open Tools, Export, All content and download the .xml file. Then:
- Export file (required): the
.xmlupload, stored privately on the default disk. Posts, pages, authors, categories, tags, comments and attachments are read from it as a stream, so large exports work. - Old site address: the old site's address, for example
https://old.example.com, if it differs from the export. Addresses on this host become redirects; other hosts are listed in the external redirect map. - Old category base and Old tag base: the words the old site used in category and tag addresses, for example
category. Used to build the redirects. - Author map:
wp_login:author_slugpairs separated by commas. Matches WordPress logins to authors you already have, instead of creating new ones. - Import pages as posts: On or Off, default Off. WordPress pages are skipped unless this is on.
Every permalink becomes a permanent redirect, including dated permalinks.
Ghost (JSON export)#

Fewer options than WordPress.
In Ghost open Settings, Labs, Export and download the .json. Options: Export file (required), Old site address and Old tag base. Posts, authors and tags are imported; members and newsletters are skipped.

The dry run for Ghost, as a report.
Markdown folder#

Notice the single folder field instead of an upload.
- Folder of Markdown files (required): a folder on the default disk holding
.mdor.markdownfiles. The folder must stay inside the disk. - Old site address: used for the
urland aliases in the front matter.
Each file's front matter is read for title, slug, date, tags, categories and authors. A file with no body is skipped. Redirects are made only when a file names a slug or aliases.

The dry run report for a folder.
Magento blog databases: Magefan, Mageplaza, Mirasvit, Aheadworks#

The database sources share one set of options. The others (Mageplaza, Mirasvit, Aheadworks) look the same.
These four read the old blog's tables over a database connection.
- Database connection name (required): a connection from
config/database.phpthat reads the old blog's database. Add one for the old database first. - Table prefix of the old database: the prefix of the Magento tables, if any. Empty for none.
- Old site address: the old store's address, for the redirects.
Posts, categories, tags and authors are imported, with comments and the feed route for Magefan. Each old route becomes a redirect. Amasty Blog is not supported.

Mageplaza Blog.

Mirasvit Blog MX.

Aheadworks Blog.
Laravel blog packages: stephenjude and firefly#

The same options as the Magento sources plus Old post address.
For stephenjude/filament-blog and firefly/filament-blog. The options are the Database connection name, Table prefix, Old site address and one more:
- Old post address: how the old post addresses looked, with
{slug}where the post's slug goes, for example/blog/{slug}. Used to make a redirect for every post.

firefly/filament-blog has the same fields.
Posts, categories and tags are imported. Other Laravel blog packages are not supported.
Safeguards and the command line#
- Dry run first, always possible. A dry run writes nothing. The report is what a live run would do.
- Reruns change nothing that is already imported. A record that has not changed since the last import is left alone.
- Paths stay confined. A file or folder must be inside the disk. Media is downloaded only from public addresses.
- One at a time per blog. A second import for the same blog is refused while the first runs.
- Order. Authors, categories, tags, posts, comments and the feed redirects are imported in that order.
During an import the package defers its cache bumps and search updates to the end of the run. An address outside the blog's own paths redirects on the blog's host by the package's host-level fallback under the default configuration.
From the command line:
php artisan cwb:import SOURCEOptions depend on the source: blog, locale and dry run for WordPress and Ghost; folder for Markdown; connection and blog for Magento databases; connection and prefix for Laravel blog packages. php artisan cwb:import:report prints the report of a job.







