Content pages
The Content module owns the pages table (title, slug and body translatable, legal_key, is_published,
in_footer, position) and page_slug_history (former slugs per language, written by the model's updating hook).
Content\Contracts\Pagesis what the storefront uses:find($slug, $locale, $fill)returns aPageView(published only; a former or Romanian slug finds it too, and the controller answers 301 to the current address),footer()the footer links,sitemap()the slugs forpages-<locale>-1.xml.- The body is Markdown, rendered with
Str::markdownwithhtml_input: escapeand unsafe links dropped.{key}placeholders are replaced before rendering with the values the storefront passes (Storefront\Http\Controllers\PageController::fill()builds them fromPlatform\Contracts\ShopCompanyand the store context). Content\Pages\LegalPageslists the legal pages and installs the missing ones as drafts frompackages/core/resources/legal/ro/<key>.md. Legal pages are Romanian; edit the templates there.- Admin:
admin.content.pages.*, permissioncontent.manage.
Landing pages
landing_pages(Models\LandingPage: translatabletitle,slug,seo_description;layoutjsonb;is_published,starts_at,ends_at; media collectionimageson themediadisk withcardandwideWebP conversions) andlanding_slug_history(former slugs, written in the model'supdatinghook).Landing\Layout::normalise(input, locales)is the whitelist every layout goes through, on save and on render: rows (widthcontained | wide,toneplain | muted, up to 30), columns (span12 | 8 | 6 | 4 | 3, at most twelve twelfths a row), modules (up to 6 a column):text(Markdown per language),products(sourceskus | category | brand | promotion,limit1–24),banner(media_id, texts,linkonly a shop path orhttps://),brands(brand_ids). Unknown types and fields are dropped, texts cut.Contracts\Landings(Landing\DatabaseLandings):find(slug, locale)(any state;LandingView::$live,$ended) renders text withStr::markdown(html_input: escape, no unsafe links) and resolves banner images;sitemap()the live pages' slugs (added topages-<locale>-1.xmlbyStorefront\Seo\Sitemaps).- Storefront:
Storefront\Http\Controllers\LandingController(store.{locale}.landing,/campanie/{slug}): a page not live opens only with a valid signature (the admin'sURL::temporarySignedRoute, an hour, noindex); an ended one answers 410; a former slug 301. Products come fromVariantDirectory::productsBySku()+CatalogBrowser::cards()(in the written order),CatalogBrowser::products()for a category or brand, andPromotions\Contracts\Offers::covers()for a promotion (its products, else its first category, else its brands, else the catalog), priced byShelf. - Admin:
Http\Controllers\LandingPageController(admin.content.landings.*,content.manage), the builder is the Alpine componentlandingBuilder(packages/core/resources/js/admin/landing-builder.js) posting the layout as one JSON field.
Blog
blog_categories(Models\BlogCategory: translatablename,slug,description;position),articles(Models\Article: translatabletitle,slug,excerpt,body(Markdown),seo_description;faqjsonb list of{question: {locale: text}, answer: {locale: text}};author;is_published,published_at; media collectioncover(single file,card800×450 crop andwide1600×900 WebP)),article_product(position), andblog_slug_history(kindarticle | category; written by theKeepsBlogSlugstrait'supdatinghook).- Live = published with
published_atpast. Saving published without a date sets it to now, once. Contracts\Articles(Blog\DatabaseArticles):page()(paginator ofArticleCard),latest(),forProduct(),find()(any state,ArticleView::$live; Markdown withhtml_input: escape; questions kept only with both texts),category(),categories()(those with live articles),any(),sitemap().- Storefront:
Storefront\Http\Controllers\BlogController:store.{locale}.blog(/blog,?page=),store.{locale}.blog.category(/blog/categorie/{slug}),store.{locale}.article(/blog/{slug}; not live only with a valid signature, noindex). JSON-LD:StructuredData::article()(BlogPosting, author aPersonwhen named, else the shop'sOrganization) andStructuredData::faq()(FAQPage, only from the questions on the page). The product page listsArticles::forProduct(); the footer links the blog whenArticles::any();Sitemapsadds the blog, categories and articles topages-<locale>-1.xml. - Landing pages: the
articlesmodule (title,category_id,limit1–12) rendersArticles::latest(). - Admin:
ArticleController(admin.content.articles.*, tabs, cover upload) andBlogCategoryController(admin.content.articles.categories.*),content.manage.
Tests: tests/Feature/Content/PagesTest.php, tests/Feature/Content/LandingPagesTest.php,
tests/Feature/Content/BlogTest.php.