Docs / Inlay / Importing Blade Pages

Importing Blade pages

inlay:import turns a page you already have into editable sections and a draft page:

php artisan inlay:import resources/views/pages/about.blade.php --path=about
Argument / option Purpose
view Path to the Blade file.
--title= Page title. Defaults from the file name.
--path= Public path for the page. None by default.
--dry-run Show the sections that would be created without writing anything.

What it does

  • Each top-level element becomes a single-file section in resources/views/inlay/sections.
  • Headings, paragraphs, links and images are lifted into settings, with the current content as their defaults.
  • Anything already using Blade ({{ $user->name }}, @if) is left as written.
  • A draft page is built from the new sections.

After importing

Review the generated files: rename settings, and put back text that shouldn't be editable. Then edit and publish the page in the admin.

Recognising repeated markup (cards, list items) as a repeater or blocks area is on the roadmap.

Discovery Call

One call.
We'll both know.

20 minutes to walk through your project, ask the hard questions, and work out honestly if we're the right team for it.

  • One call per day - it gets our full attention
  • Australia's only Laravel Premier Partner
  • Trusted by Chemist Warehouse, HelloFresh and Youfoodz
  • Senior engineers only - no juniors on your project
  • Brisbane-based, onshore team

Press Esc to close  ·  B to reopen