Skip to content
Available for new work
Pages in Blog

ReferencePremium

CoullWorks Blog for Laravel block fields reference

The fields of every built-in block type with type, limits and defaults, and how the block registry behaves.

Updated 16 November 2026Back to the package pageBuy

Each block type stores its settings as typed fields. This page lists the fields of every built-in block, with the type, limits and default. Nested fields use dots, for example items.question. Blocks are described in Blocks and rendering.

coullworks.banner-bleed block fields#

FieldTypeWhat it doesLimits and default
image_desktopmediaThe banner image for wide screens. A path on the blog's image disk.
image_mobilemediaAn optional second banner image for narrow screens. A path on the blog's image disk.
alttextAlternative text for the image, read by screen readers. Not needed when Decorative is on.Max 255.
decorativetoggleMarks the image as purely decorative. An empty alternative text is stored and screen readers skip it.Default false.
video_bgmediaAn optional background video. A path on the blog's image disk.
overlay_colortextThe colour laid over the banner, as a CSS colour value.Max 32.
overlay_opacitynumberHow strong the overlay is, from 0 (none) to 100.Min 0, max 100. Default 0.
headingtextThe banner heading.Max 255.
textrich-inlineShort text shown under the banner heading.
cta_labeltextThe label of the banner button.Max 64.
cta_linklinkWhere the banner button goes: an address, a post, a category or a tag.
min_heightnumberThe least height of the banner, in pixels.Min 0, max 4000.
alignmentselectWhich side the banner text sits on: left, centre or right. Options: left, center, right.Required. Default left.

coullworks.banner-constrained block fields#

FieldTypeWhat it doesLimits and default
image_desktopmediaThe banner image for wide screens. A path on the blog's image disk.
image_mobilemediaAn optional second banner image for narrow screens. A path on the blog's image disk.
alttextAlternative text for the image, read by screen readers. Not needed when Decorative is on.Max 255.
decorativetoggleMarks the image as purely decorative. An empty alternative text is stored and screen readers skip it.Default false.
video_bgmediaAn optional background video. A path on the blog's image disk.
overlay_colortextThe colour laid over the banner, as a CSS colour value.Max 32.
overlay_opacitynumberHow strong the overlay is, from 0 (none) to 100.Min 0, max 100. Default 0.
headingtextThe banner heading.Max 255.
textrich-inlineShort text shown under the banner heading.
cta_labeltextThe label of the banner button.Max 64.
cta_linklinkWhere the banner button goes: an address, a post, a category or a tag.
min_heightnumberThe least height of the banner, in pixels.Min 0, max 4000.
alignmentselectWhich side the banner text sits on: left, centre or right. Options: left, center, right.Required. Default left.

coullworks.banner-full block fields#

FieldTypeWhat it doesLimits and default
image_desktopmediaThe banner image for wide screens. A path on the blog's image disk.
image_mobilemediaAn optional second banner image for narrow screens. A path on the blog's image disk.
alttextAlternative text for the image, read by screen readers. Not needed when Decorative is on.Max 255.
decorativetoggleMarks the image as purely decorative. An empty alternative text is stored and screen readers skip it.Default false.
video_bgmediaAn optional background video. A path on the blog's image disk.
overlay_colortextThe colour laid over the banner, as a CSS colour value.Max 32.
overlay_opacitynumberHow strong the overlay is, from 0 (none) to 100.Min 0, max 100. Default 0.
headingtextThe banner heading.Max 255.
textrich-inlineShort text shown under the banner heading.
cta_labeltextThe label of the banner button.Max 64.
cta_linklinkWhere the banner button goes: an address, a post, a category or a tag.
min_heightnumberThe least height of the banner, in pixels.Min 0, max 4000.
alignmentselectWhich side the banner text sits on: left, centre or right. Options: left, center, right.Required. Default left.

coullworks.callout block fields#

FieldTypeWhat it doesLimits and default
variantselectThe callout style. Options: info, tip, warning, note.Required.
titletextAn optional heading for the callout.Max 255.
bodyrichThe body text.Required.

coullworks.code block fields#

FieldTypeWhat it doesLimits and default
languageselectThe language used for syntax highlighting. Options: php, js, ts, jsx, tsx, json, bash, html, css, scss, less, sql, xml, yaml, python, graphql, diff, twig, plaintext.Required. Default plaintext.
filenametextAn optional file name shown above the code.Max 255.
codecodeThe code itself.Max 200000, required.
line_numberstoggleShows line numbers. They are not copied with the code.Default false.
highlight_linestextLines to mark, for example 2-3,5.Max 120.
wraptoggleWraps long lines instead of scrolling sideways.Default false.

coullworks.columns block fields#

FieldTypeWhat it doesLimits and default
columnscolumnsThe columns, between 2 and 4, each holding its own nested blocks.Min 2, max 4, required.
columns.blocksblocksThe blocks inside one column (at most 20).Max 20, required.

coullworks.cta block fields#

FieldTypeWhat it doesLimits and default
styleselectShows the call to action as a button or as a card. Options: button, card.Required. Default button.
titletextThe call to action headline.Max 255, required.
texttextSupporting text under the headline.Max 500.
linklinkWhere the call to action goes: an address, a post, a category or a tag.Required.
mediamediaAn optional image for the call to action. A path on the blog's image disk.

coullworks.divider block fields#

FieldTypeWhat it doesLimits and default
styleselectA line, a row of dots, or empty space. Options: line, dots, space.Required. Default line.

coullworks.embed block fields#

FieldTypeWhat it doesLimits and default
urltextThe address to embed or play.Max 2048, required.
titletextThe title of the embedded frame. When empty it reads Embedded <provider> content.Max 150.

coullworks.faq block fields#

FieldTypeWhat it doesLimits and default
itemslistThe entries of the block.Min 1, required.
items.questiontextThe question.Max 500, required.
items.answerrichThe answer.Required.
open_firsttoggleOpens the first question when the page loads.Default false.

coullworks.figure block fields#

FieldTypeWhat it doesLimits and default
mediamediaThe figure image. A path on the blog's image disk.Required.
mobile_mediamediaA second image shown below 768 pixels wide. One alternative text serves both images. A path on the blog's image disk.
alttextAlternative text for the image, read by screen readers. Not needed when Decorative is on.Max 255.
decorativetoggleMarks the image as purely decorative. An empty alternative text is stored and screen readers skip it.Default false.
captionrich-inlineA caption shown with the item.
credit_texttextThe credit line for the image.Max 255.
credit_urltextA link for the credit.Max 2048.
alignmentselectHow wide the figure runs: text width, wide or full. Options: text, wide, full.Required. Default text.
lightboxtoggleLets the visitor open the image larger.Default false.
FieldTypeWhat it doesLimits and default
imageslistThe gallery images.Min 1, required.
images.mediamediaThe image. A path on the blog's image disk.Required.
images.alttextAlternative text for the image.Max 255.
images.decorativetoggleMarks the image as purely decorative.Default false.
images.captiontextA caption for the image.Max 255.
layoutselectHow the images are arranged. Options: single, 2-up, 3-up, masonry.Required. Default 3-up.
lightboxtoggleLets the visitor open the image larger.Default false.

coullworks.heading block fields#

FieldTypeWhat it doesLimits and default
texttextThe heading text.Max 255, required.
levelselectThe heading level. Options: h2, h3, h4.Required. Default h2.
anchortextThe anchor name used to link to the heading.Max 120.

coullworks.html block fields#

FieldTypeWhat it doesLimits and default
htmlcodeThe raw HTML. It is sanitised before it is shown. Options: sanitise.Max 200000, required.

coullworks.image block fields#

FieldTypeWhat it doesLimits and default
mediamediaThe image. A path on the blog's image disk.Required.
alttextAlternative text for the image, read by screen readers. Not needed when Decorative is on.Max 300, only shown when decorative = False.
decorativetoggleMarks the image as purely decorative. An empty alternative text is stored and screen readers skip it.Default false.
titletextAn optional title attribute for the image.Max 300.

coullworks.quote block fields#

FieldTypeWhat it doesLimits and default
quotetextareaThe quotation.Max 5000, required.
citationtextWho said it.Max 255.
citation_urltextA link for the source of the quotation.Max 2048.

coullworks.section block fields#

FieldTypeWhat it doesLimits and default
widthselectHow wide the section runs. Options: narrow, text, wide, bleed.Required. Default text.
background_colortextA background colour for the section, as a CSS colour value.Max 32.
backgroundmediaA background image for the section. A path on the blog's image disk.
paddingselectHow much space surrounds the section's content. Options: none, sm, md, lg.Required. Default md.
childrenblocksThe blocks inside the section. Only leaf blocks are allowed (no columns or sections).Nested builder (leaf blocks only).

coullworks.table block fields#

FieldTypeWhat it doesLimits and default
header_rowtoggleTreats the first row as a header row.Default false.
header_columntoggleTreats the first column as row headers.Default false.
captiontextA caption for the table.Max 255.
stripedtoggleShades alternate rows.Default false.
rowslistThe table rows and cells.Min 1, required.

coullworks.takeaways block fields#

FieldTypeWhat it doesLimits and default
titletextA heading for the takeaways box.Max 255.
itemslistThe entries of the block.Min 1, max 20, required.
items.texttextThe takeaway text.Max 500, required.

coullworks.text block fields#

FieldTypeWhat it doesLimits and default
bodyrichThe body text.Required.

coullworks.toc block fields#

FieldTypeWhat it doesLimits and default
levelsselectWhich heading levels the table of contents lists. Options: h2, h2-h3.Required. Default h2-h3.
titletextA heading for the table of contents.Max 255.

coullworks.video block fields#

FieldTypeWhat it doesLimits and default
providerselectWhere the video comes from. Options: upload, youtube, vimeo.Required.
urltextThe address to embed or play.Max 2048.
mediamediaThe video file for uploads. A path on the blog's image disk.
postermediaThe still image shown before playback. A path on the blog's image disk.
no_postertoggleShows no poster image.Default false.
titletextA title for the video, used for accessibility.Max 255, required.
captiontextA caption shown with the video.Max 255.
captions_trackmediaA captions file for the video.
aspectselectThe aspect ratio of the video frame. Options: 16:9, 4:3, 1:1, 21:9, 9:16.Required. Default 16:9.

coullworks.products block fields#

FieldTypeWhat it doesLimits and default
layoutselectShows the products as a grid or a carousel. Options: carousel, grid.Default grid.
countnumberHow many products to show.Min 1, max 24, required. Default 4.
sourceselectWhere the products come from: hand-made cards, a collection, or a rule your application provides. When absent it is derived: cards if there are any, otherwise the collection when one is named. Options: cards, collection, rule.Value derived when absent (cards if any cards, else collection if collection_key set); editor hides "rule" without a ProductRuleProvider.
cardslistHand-made product cards.
cards.titletextThe card title.Max 255, required.
cards.linklinkWhere the card goes.Required.
cards.mediamediaThe card image. A path on the blog's image disk.
cards.alttextAlternative text for the card image.Max 255.
cards.decorativetoggleMarks the card image as decorative.Default false.
cards.price_texttextThe price text shown on the card.Max 64.
cards.product_reftextA reference to a product in your catalogue, resolved by your ProductProvider.Max 191.
collection_keytextThe key of a collection in your catalogue, resolved by your ProductProvider.Max 191.
rule_keytextThe key of a rule your ProductRuleProvider offers.Max 64.

Block registry and editor#

  • Custom block types: Register app BlockType classes via coullworks-blog.blocks.custom (docs/extending-blocks.md); example PricingTable in workbench/app/Blocks.
  • Disabled block types: coullworks-blog.blocks.disabled hides types from pickers; stored content of a disabled type still validates, indexes and renders.
  • Block versions and upgraders: Old stored versions are upgraded in memory on read; cwb:blocks:upgrade persists them.
  • Block reference index: Media, product and link references derived from blocks (tables block_media_refs, block_product_refs, block_link_refs); cwb:blocks:reindex rebuilds them; broken links shown on the dashboard widget.
  • Block JSON schema: GET api/blog/v1/schema/blocks returns the JSON Schema of every block type.

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.