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.