<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: hamed pakdaman</title>
    <description>The latest articles on Forem by hamed pakdaman (@hamed_pakdaman_c724e294d9).</description>
    <link>https://forem.com/hamed_pakdaman_c724e294d9</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3772748%2F1d41b2d0-29ca-4f1d-8441-f45dcd077713.jpg</url>
      <title>Forem: hamed pakdaman</title>
      <link>https://forem.com/hamed_pakdaman_c724e294d9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/hamed_pakdaman_c724e294d9"/>
    <language>en</language>
    <item>
      <title>What 183 admin pages look like — building a full Laravel CMS in 2026</title>
      <dc:creator>hamed pakdaman</dc:creator>
      <pubDate>Sat, 09 May 2026 13:51:47 +0000</pubDate>
      <link>https://forem.com/hamed_pakdaman_c724e294d9/what-183-admin-pages-look-like-building-a-full-laravel-cms-in-2026-1oj3</link>
      <guid>https://forem.com/hamed_pakdaman_c724e294d9/what-183-admin-pages-look-like-building-a-full-laravel-cms-in-2026-1oj3</guid>
      <description>&lt;p&gt;A year ago I started building a CMS because I had three options for client work and none fit:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;WordPress&lt;/strong&gt; — works, but 250+ plugin CVEs/week (Patchstack 2024). I patch sites every week. Tired of it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contentful / Sanity&lt;/strong&gt; — modern, but $300/mo entry pricing for SMB use cases. Vendor lock is real.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strapi / Payload&lt;/strong&gt; — solid, but Node-only. I'm a PHP/Laravel shop.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I built UnfoldCMS — a self-hosted Laravel CMS that ships as a single product, not a framework you assemble. This post is a tour of what's actually in there. Not the marketing version — the "here are the 183 admin pages" version.&lt;/p&gt;

&lt;p&gt;If you're picking a CMS in 2026, this is the kind of breakdown I wish vendors actually published.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack, briefly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Laravel 11 + Inertia 2 + React 19 + TypeScript&lt;/li&gt;
&lt;li&gt;Tailwind v4 + shadcn/ui (50+ components)&lt;/li&gt;
&lt;li&gt;MySQL / MariaDB&lt;/li&gt;
&lt;li&gt;Spatie Media Library, Spatie Permission (RBAC), Spatie Activity Log&lt;/li&gt;
&lt;li&gt;Runs on $5/mo Hetzner VPS at ~80MB RAM idle&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The shadcn + Tailwind theming side I covered in &lt;a href="https://dev.to/hamed_pakdaman_c724e294d9/building-a-themeable-cms-admin-with-shadcnui-tailwind-v4-lessons-from-50-components-4j0d"&gt;my previous post&lt;/a&gt;. This post is about the CMS surface — the modules, the editor, the publishing pipeline.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's in the box
&lt;/h2&gt;

&lt;p&gt;Every module here is built-in. No "plugin marketplace" — Laravel has service providers, that's the extension model.&lt;/p&gt;

&lt;h3&gt;
  
  
  Posts and Pages
&lt;/h3&gt;

&lt;p&gt;The core publishing primitives. Both share the same model (&lt;code&gt;Post&lt;/code&gt; with a &lt;code&gt;content_type&lt;/code&gt; enum), but render differently.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Posts&lt;/strong&gt; = blog entries, indexed under &lt;code&gt;/blog/{slug}&lt;/code&gt;, listed on the blog index page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pages&lt;/strong&gt; = root-level content like &lt;code&gt;/about&lt;/code&gt;, &lt;code&gt;/pricing&lt;/code&gt;, &lt;code&gt;/migrate-from-wordpress&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Same editor, same media handling, same SEO fields. Only the URL routing differs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The editor is a structured block editor built on Tiptap's foundation. Each block is a discrete field — heading, paragraph, image, code block, callout, table — not a free-form blob. Editors get predictable layouts; developers get clean data to query.&lt;/p&gt;

&lt;p&gt;Scheduled publishing is built in. &lt;code&gt;posted_at&lt;/code&gt; in the future + &lt;code&gt;is_published = true&lt;/code&gt; = post appears at the scheduled time. A single Laravel scheduler entry runs every minute and flips visibility.&lt;/p&gt;

&lt;h3&gt;
  
  
  Media Library
&lt;/h3&gt;

&lt;p&gt;Spatie Media Library under the hood. Three things made it worth using over a custom solution:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Polymorphic associations&lt;/strong&gt; — any model can have media (posts, users, settings, custom models).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conversions on demand&lt;/strong&gt; — define &lt;code&gt;large&lt;/code&gt;, &lt;code&gt;medium&lt;/code&gt;, &lt;code&gt;thumbnail&lt;/code&gt; once; conversions generate when first requested.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Featured-image collections&lt;/strong&gt; — separate &lt;code&gt;featured-image&lt;/code&gt; collection per post, separate from inline body images.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The trap I'd warn against: the legacy &lt;code&gt;image_large&lt;/code&gt; text column on the post table looks tempting for "set the hero image." Don't. Use Spatie collections — the template renders them automatically with proper aspect ratio handling.&lt;/p&gt;

&lt;h3&gt;
  
  
  Menus
&lt;/h3&gt;

&lt;p&gt;Tree-based menu builder. Drag-and-drop reorder. Each menu item links to internal routes (resolved via Laravel's named routes), external URLs, or content (auto-generates the URL from the slug).&lt;/p&gt;

&lt;p&gt;Multiple menus per site — Header, Footer, Mobile, Sidebar — and they support nested children. The frontend templates pull menus by slug:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nv"&gt;$mainMenu&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Menu&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;bySlug&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'main'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Forms
&lt;/h3&gt;

&lt;p&gt;A form builder with a JSON schema. Fields, validation rules, success/error messages, redirect targets — all configurable from the admin. Submissions go to a &lt;code&gt;form_submissions&lt;/code&gt; table; admins see a list with filters, can export to CSV, and forward to email or webhooks.&lt;/p&gt;

&lt;p&gt;The architecture choice: forms are a CMS feature, not a separate app. They share the auth, the rate limits, the spam filtering (Spatie honeypot), and the activity log with the rest of the system.&lt;/p&gt;

&lt;h3&gt;
  
  
  Settings
&lt;/h3&gt;

&lt;p&gt;Key-value store with a config-driven schema. The schema lives in &lt;code&gt;config/site.php&lt;/code&gt; — defaults set once, admin UI generates from the schema, frontend reads via &lt;code&gt;Setting::get('key', $fallback)&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Why this matters: if a customer wants a "show announcement banner" toggle, you don't write a migration, a form, a controller, and a Blade variable. You add a key to the schema and it shows up in the admin automatically.&lt;/p&gt;

&lt;h3&gt;
  
  
  Theming
&lt;/h3&gt;

&lt;p&gt;Three themes ship — Default (blue), Purple, Unfold (soft purple). Switching is one CSS variable swap (covered in detail in the previous post). The theming primitive is &lt;code&gt;data-theme="..."&lt;/code&gt; on the root element + Tailwind v4's &lt;code&gt;@theme&lt;/code&gt; directive.&lt;/p&gt;

&lt;p&gt;What's in scope for theming: colors, radius, font stack. Not in scope: layout, spacing, component shape. That's intentional — themes are visual, not structural.&lt;/p&gt;

&lt;h3&gt;
  
  
  Templates
&lt;/h3&gt;

&lt;p&gt;Above themes is templates — full frontend designs that ship with the CMS. The active one on this site is "Aurora," which has its own seed data, blade templates, and section components. Templates are swappable at install time; runtime swap is harder because each ships its own homepage section data.&lt;/p&gt;

&lt;h3&gt;
  
  
  SEO
&lt;/h3&gt;

&lt;p&gt;Built on the &lt;code&gt;ralphjsmit/laravel-seo&lt;/code&gt; package, extended with site-wide defaults and per-post overrides.&lt;/p&gt;

&lt;p&gt;What gets generated automatically:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; and meta description (with explicit override fields)&lt;/li&gt;
&lt;li&gt;Open Graph + Twitter card tags&lt;/li&gt;
&lt;li&gt;JSON-LD schema: &lt;code&gt;Article&lt;/code&gt;, &lt;code&gt;BreadcrumbList&lt;/code&gt;, &lt;code&gt;Organization&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Canonical URLs with proper trailing-slash handling&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;hreflang&lt;/code&gt; tags for multi-language sites&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The CMS fallback for SEO title is the post title — but it title-cases it, which corrupts proper nouns ("WordPress" → "Wordpress"). Lesson learned the hard way: always set &lt;code&gt;seo_title&lt;/code&gt; and &lt;code&gt;meta_desc&lt;/code&gt; explicitly, never rely on the fallback. There's now a hard rule in our content-publishing skill.&lt;/p&gt;

&lt;h3&gt;
  
  
  RBAC
&lt;/h3&gt;

&lt;p&gt;Spatie Permission. Three default roles ship — Super Admin, Editor, Author — and you can add more from the admin. Permissions are granular (per-model + per-action), not just role-based.&lt;/p&gt;

&lt;p&gt;The middleware story is straight Laravel:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nc"&gt;Route&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;middleware&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="s1"&gt;'auth'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'role:editor|admin'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;group&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;Route&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;resource&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'posts'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;PostController&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;class&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No vendor magic. If you've used Spatie Permission, you know exactly what's happening.&lt;/p&gt;

&lt;h3&gt;
  
  
  Multi-language
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;spatie/laravel-translatable&lt;/code&gt;. Each translatable field (&lt;code&gt;title&lt;/code&gt;, &lt;code&gt;body&lt;/code&gt;, &lt;code&gt;seo_title&lt;/code&gt;, &lt;code&gt;meta_desc&lt;/code&gt;) stores a JSON map of &lt;code&gt;{locale: value}&lt;/code&gt;. The admin shows a locale switcher; the frontend resolves based on URL prefix (&lt;code&gt;/fr/about&lt;/code&gt;) or domain.&lt;/p&gt;

&lt;p&gt;What's not in there yet: automatic translation (machine translation pipeline). Editors translate manually for now.&lt;/p&gt;

&lt;h2&gt;
  
  
  The publishing pipeline (the part that took the longest)
&lt;/h2&gt;

&lt;p&gt;Building a "save post" button is a weekend. Building a publishing pipeline that handles drafts, scheduled publishes, sitemap regeneration, cache invalidation, and SEO updates without race conditions is a year.&lt;/p&gt;

&lt;p&gt;What's behind a publish action:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Validation — required fields, slug uniqueness, meta-desc length&lt;/li&gt;
&lt;li&gt;Markdown → HTML conversion (server-side; the body is stored as HTML so the template just renders it raw)&lt;/li&gt;
&lt;li&gt;SEO record sync — &lt;code&gt;seo_title&lt;/code&gt;, &lt;code&gt;meta_desc&lt;/code&gt;, &lt;code&gt;og_image&lt;/code&gt; written to a related table&lt;/li&gt;
&lt;li&gt;Spatie media attachment — featured image moves from temp upload to permanent collection&lt;/li&gt;
&lt;li&gt;Sitemap regeneration — &lt;code&gt;php artisan sitemap:generate&lt;/code&gt; runs synchronously (no queue worker required for shared hosting)&lt;/li&gt;
&lt;li&gt;Cache invalidation — &lt;code&gt;view:clear&lt;/code&gt;, &lt;code&gt;route:clear&lt;/code&gt;, edge cache purge if configured&lt;/li&gt;
&lt;li&gt;Activity log — Spatie ActivityLog records who published what&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All of this runs synchronously in the request because the CMS targets shared hosting where queue workers aren't a given. If you're on a real VPS, you can flip &lt;code&gt;QUEUE_CONNECTION=database&lt;/code&gt; and it queues automatically. The synchronous fallback is what makes "deploy to a $5 VPS" actually work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Deployment story
&lt;/h2&gt;

&lt;p&gt;Single artisan command: &lt;code&gt;php artisan deploy&lt;/code&gt;. It does:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Verifies clean working tree on the deploy branch&lt;/li&gt;
&lt;li&gt;Pushes to git&lt;/li&gt;
&lt;li&gt;Pulls on the server&lt;/li&gt;
&lt;li&gt;Runs &lt;code&gt;composer install --no-dev&lt;/code&gt; (skipped if &lt;code&gt;composer.lock&lt;/code&gt; unchanged)&lt;/li&gt;
&lt;li&gt;Runs &lt;code&gt;php artisan migrate --force&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Builds frontend assets locally with &lt;code&gt;pnpm run build&lt;/code&gt;, syncs to server via rsync (skipped if no JS/CSS changed)&lt;/li&gt;
&lt;li&gt;Clears config/view/route caches&lt;/li&gt;
&lt;li&gt;Verifies HTTP 200&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The lessons embedded in this command:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend builds locally&lt;/strong&gt;, not on the server. Faster, and avoids needing Node on the server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Composer skip when lockfile unchanged&lt;/strong&gt; saves ~30s per deploy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rsync over SCP&lt;/strong&gt; for assets — incremental, only uploads changed files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTTP 200 verification at the end&lt;/strong&gt; catches deploys that broke the site silently.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I've shipped enough Laravel apps that I now consider the deploy command part of the product, not a project.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's not in the box (yet)
&lt;/h2&gt;

&lt;p&gt;Honest list:&lt;/p&gt;

&lt;h3&gt;
  
  
  Public headless API
&lt;/h3&gt;

&lt;p&gt;Internal REST works. Public endpoints + signed webhooks ship late 2026. Until then, if you want to use UnfoldCMS as a content backend for a Next.js site, you write a thin Laravel route that returns JSON:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nc"&gt;Route&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'/api/blog/{slug}'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="nv"&gt;$slug&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Post&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;published&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;whereSlug&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$slug&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;firstOrFail&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three lines, but I get it — that's not the same as a polished public API. Late 2026.&lt;/p&gt;

&lt;h3&gt;
  
  
  Plugin marketplace
&lt;/h3&gt;

&lt;p&gt;Not building one. Extension model is Laravel service providers + middleware. If you know Laravel, you know how to extend it. If you don't, the learning curve is "Laravel itself," which is a real cost but a transferable one.&lt;/p&gt;

&lt;h3&gt;
  
  
  Visual page builder
&lt;/h3&gt;

&lt;p&gt;The block editor handles structured content well. It's not a Webflow-style drag-and-drop layout designer, and probably won't be — different category. If you need that, Webflow or Storyblok is the right tool.&lt;/p&gt;

&lt;h3&gt;
  
  
  Multi-site / multi-tenant
&lt;/h3&gt;

&lt;p&gt;Single site per install today. Agencies running 20 client sites run 20 installs (cheap on Hetzner — $5 × 20 = $100/mo for hosting; the license is per-site too).&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers
&lt;/h2&gt;

&lt;p&gt;Concrete, not aspirational:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lines of code:&lt;/strong&gt; ~80K (PHP) + ~45K (TS/TSX) — a real product, not a toy&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pages in admin:&lt;/strong&gt; 183&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;shadcn components:&lt;/strong&gt; 50+&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Themes shipped:&lt;/strong&gt; 3&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory footprint:&lt;/strong&gt; ~80MB idle on Hetzner CX22&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cold start:&lt;/strong&gt; ~250ms first request, ~40ms after warm&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build time:&lt;/strong&gt; ~12 seconds (Vite + Inertia bundle)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tests:&lt;/strong&gt; ~600 PHPUnit tests, ~80% coverage on the critical paths&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Pricing decision
&lt;/h2&gt;

&lt;p&gt;One-time license per site. $99 Solo, $199 Pro, $499 Agency.&lt;/p&gt;

&lt;p&gt;The reasoning: subscriptions hold customers' data hostage. A one-time license means a customer can install it, never pay again, and still own the install — code, database, content. If I disappear tomorrow, the install keeps working.&lt;/p&gt;

&lt;p&gt;The downside: ARR is harder to project. The upside: customers actually trust me. After two years, I'd pick this model again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built it (the short version)
&lt;/h2&gt;

&lt;p&gt;WordPress works for some sites. Contentful works for enterprise teams. None of them work for the in-between — small agencies and SMBs running 5–20 sites who want owned data, sane DX, and no monthly bill that scales with their growth.&lt;/p&gt;

&lt;p&gt;UnfoldCMS is what I built for that gap. It's not the right answer for everyone — the &lt;a href="https://unfoldcms.com/compare" rel="noopener noreferrer"&gt;comparison pages&lt;/a&gt; are explicit about who it's for and who it isn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Live demo (admin login on the page): &lt;a href="https://unfoldcms.com/demo" rel="noopener noreferrer"&gt;https://unfoldcms.com/demo&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/hpakdaman/unfoldcms" rel="noopener noreferrer"&gt;https://github.com/hpakdaman/unfoldcms&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Docs: &lt;a href="https://unfoldcms.com/docs" rel="noopener noreferrer"&gt;https://unfoldcms.com/docs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Comparison vs WordPress / Contentful / Sanity / Payload: &lt;a href="https://unfoldcms.com/compare" rel="noopener noreferrer"&gt;https://unfoldcms.com/compare&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Honest critique welcome in the comments — that's how the product gets better.&lt;/p&gt;

&lt;p&gt;— Hamed&lt;/p&gt;

</description>
      <category>php</category>
      <category>webdev</category>
      <category>cms</category>
      <category>laravel</category>
    </item>
    <item>
      <title>Building a themeable CMS admin with shadcn/ui + Tailwind v4 — lessons from 50+ components</title>
      <dc:creator>hamed pakdaman</dc:creator>
      <pubDate>Sat, 09 May 2026 13:29:05 +0000</pubDate>
      <link>https://forem.com/hamed_pakdaman_c724e294d9/building-a-themeable-cms-admin-with-shadcnui-tailwind-v4-lessons-from-50-components-4j0d</link>
      <guid>https://forem.com/hamed_pakdaman_c724e294d9/building-a-themeable-cms-admin-with-shadcnui-tailwind-v4-lessons-from-50-components-4j0d</guid>
      <description>&lt;p&gt;I shipped a Laravel CMS where the entire admin is built on shadcn/ui — 50+ components, 183 pages, three themes, runtime switching with no build step. Here are the five things that mattered most.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why shadcn over Material UI / Ant Design
&lt;/h2&gt;

&lt;p&gt;The deciding factor: &lt;strong&gt;shadcn components are my code&lt;/strong&gt;. When I need to change a &lt;code&gt;Button&lt;/code&gt; variant or extend &lt;code&gt;DataTable&lt;/code&gt;, I edit the file. No npm overrides, no className wars, no vendor PR queue.&lt;/p&gt;

&lt;p&gt;Tradeoff: when shadcn upstream ships a new pattern, I port it manually. Budget ~1 day/quarter for upgrades.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lesson 1: Layout primitives save 100 pages of CSS
&lt;/h2&gt;

&lt;p&gt;Three components used everywhere — &lt;code&gt;PageContainer&lt;/code&gt;, &lt;code&gt;Card&lt;/code&gt;, &lt;code&gt;Stack&lt;/code&gt;. The &lt;code&gt;PageContainer&lt;/code&gt; alone replaced ~40 page-level layout decisions. Three good ones beats 10 flexible ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lesson 2: Tailwind v4 + CSS variables = themes without a build
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@theme&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="py"&gt;--color-primary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;oklch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;0.55&lt;/span&gt; &lt;span class="m"&gt;0.27&lt;/span&gt; &lt;span class="m"&gt;262&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="nt"&gt;data-theme&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;"purple"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="py"&gt;--color-primary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;oklch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;0.55&lt;/span&gt; &lt;span class="m"&gt;0.27&lt;/span&gt; &lt;span class="m"&gt;304&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Switching themes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;documentElement&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;dataset&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;theme&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;purple&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No bundle changes. No re-render. CSS variables flip and every shadcn component updates because they reference the variable, not a hardcoded color. I expected theming to be the hard part — it took an afternoon.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lesson 3: One Sidebar component, different data
&lt;/h2&gt;

&lt;p&gt;shadcn's &lt;code&gt;Sidebar&lt;/code&gt; is flexible enough to handle admin nav and docs nav with the same component. Data varies per-page; the component is shared. This is what makes a 183-page admin feel like one app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lesson 4: DataTable is the most underrated shadcn component
&lt;/h2&gt;

&lt;p&gt;Every list view — Posts, Pages, Media, Users, Forms — uses the same DataTable wrapper. Server-side pagination, sorting, row selection, bulk actions, search. The &lt;code&gt;columns&lt;/code&gt; array is the only per-page logic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lesson 5: TypeScript strictness is non-negotiable
&lt;/h2&gt;

&lt;p&gt;shadcn ships excellent types. Don't loosen them. Every page-level component declares its props type explicitly, even when "obvious."&lt;/p&gt;

&lt;h2&gt;
  
  
  What didn't work
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tiptap as the rich-text editor.&lt;/strong&gt; Great for free text, wrong for structured fields. Rebuilt on Tiptap's foundation with a custom block model — 3 weeks I'd have skipped with better evaluation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copying all 50 shadcn components up front.&lt;/strong&gt; Only 30 actually got used. Copy on demand.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tailwind v3 → v4 mid-build.&lt;/strong&gt; ~4 hours of breaking changes. Start on v4 today.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I'd use shadcn for again
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Anything that needs custom design&lt;/li&gt;
&lt;li&gt;Long-lived products where the maintenance cost is justified&lt;/li&gt;
&lt;li&gt;Type-safe fullstack apps&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What I wouldn't use it for: throwaway prototypes (use Mantine), marketing sites (Tailwind alone is faster).&lt;/p&gt;




&lt;p&gt;Source: &lt;a href="https://github.com/hpakdaman/unfoldcms" rel="noopener noreferrer"&gt;https://github.com/hpakdaman/unfoldcms&lt;/a&gt;&lt;br&gt;
Live demo: &lt;a href="https://unfoldcms.com/demo" rel="noopener noreferrer"&gt;https://unfoldcms.com/demo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm Hamed — built UnfoldCMS because none of WordPress, Contentful, or Strapi/Payload fit my Laravel shop. Honest critique welcome.&lt;/p&gt;

</description>
      <category>shadcn</category>
      <category>tailwindcss</category>
      <category>laravel</category>
      <category>react</category>
    </item>
    <item>
      <title>What frustrates you most about your current CMS?</title>
      <dc:creator>hamed pakdaman</dc:creator>
      <pubDate>Tue, 21 Apr 2026 06:55:28 +0000</pubDate>
      <link>https://forem.com/hamed_pakdaman_c724e294d9/what-frustrates-you-most-about-your-current-cms-3jmk</link>
      <guid>https://forem.com/hamed_pakdaman_c724e294d9/what-frustrates-you-most-about-your-current-cms-3jmk</guid>
      <description>&lt;p&gt;Hey developers! 👋&lt;br&gt;
I'm working on improving a Laravel-based CMS and want to understand what actually matters to developers when choosing/using a CMS.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick question
&lt;/h2&gt;

&lt;p&gt;What's your biggest frustration with your current CMS (WordPress, Strapi, Contentful, etc.)?&lt;br&gt;
Is it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Performance/bloat?&lt;/li&gt;
&lt;li&gt;Poor developer experience?&lt;/li&gt;
&lt;li&gt;Expensive pricing?&lt;/li&gt;
&lt;li&gt;Difficult customization?&lt;/li&gt;
&lt;li&gt;Security concerns?&lt;/li&gt;
&lt;li&gt;Something else entirely?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Bonus:&lt;/strong&gt; What CMS are you currently using and why haven't you switched?&lt;/p&gt;




&lt;p&gt;Not trying to sell anything—genuinely trying to understand what sucks and what doesn't. Your honest feedback helps build better tools for all of us 🙏&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>webdev</category>
      <category>laravel</category>
      <category>php</category>
    </item>
    <item>
      <title>MultiCarbon: Native Jalali &amp; Hijri Calendar Support for PHP Carbon</title>
      <dc:creator>hamed pakdaman</dc:creator>
      <pubDate>Sat, 14 Feb 2026 14:38:53 +0000</pubDate>
      <link>https://forem.com/hamed_pakdaman_c724e294d9/multicarbon-native-jalali-hijri-calendar-support-for-php-carbon-38fl</link>
      <guid>https://forem.com/hamed_pakdaman_c724e294d9/multicarbon-native-jalali-hijri-calendar-support-for-php-carbon-38fl</guid>
      <description>&lt;p&gt;If you've ever worked on a project targeting users in Iran, Afghanistan, or Arabic-speaking countries, you know the pain of converting dates between Jalali (Solar Hijri), Hijri&lt;br&gt;
  (Islamic Lunar), and Gregorian calendars.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;MultiCarbon&lt;/strong&gt; to solve this once and for all — not as a wrapper, but as a direct extension of &lt;code&gt;nesbot/carbon&lt;/code&gt;. Every Carbon method you already know works seamlessly in any&lt;br&gt;
  calendar mode.&lt;/p&gt;

&lt;p&gt;## Install&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  composer require hpakdaman/multicarbon
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Requires PHP 8.1+ and Carbon 3.&lt;/p&gt;




&lt;p&gt;The Basics — One Timestamp, Three Calendars&lt;/p&gt;

&lt;p&gt;The core idea is simple: the underlying timestamp never changes. You just switch the presentation layer.&lt;/p&gt;

&lt;p&gt;use MultiCarbon\MultiCarbon;&lt;/p&gt;

&lt;p&gt;$date = new MultiCarbon('2025-03-21');&lt;/p&gt;

&lt;p&gt;echo $date-&amp;gt;jalali()-&amp;gt;format('l j F Y');&lt;br&gt;
  // جمعه 1 فروردین 1404&lt;/p&gt;

&lt;p&gt;echo $date-&amp;gt;hijri()-&amp;gt;format('l j F Y');&lt;br&gt;
  // الجمعة 21 رمضان 1446&lt;/p&gt;

&lt;p&gt;echo $date-&amp;gt;gregorian()-&amp;gt;format('l j F Y');&lt;br&gt;
  // Friday 21 March 2025&lt;/p&gt;

&lt;p&gt;That's it. Same object, three calendars, fully fluent.&lt;/p&gt;




&lt;p&gt;Create Dates Directly in Any Calendar&lt;/p&gt;

&lt;p&gt;No need to mentally convert. Just think in the calendar you need:&lt;/p&gt;

&lt;p&gt;// Nowruz (Persian New Year)&lt;br&gt;
  $nowruz = MultiCarbon::createJalali(1404, 1, 1);&lt;br&gt;
  echo $nowruz-&amp;gt;gregorian()-&amp;gt;format('Y-m-d'); // 2025-03-21&lt;/p&gt;

&lt;p&gt;// First day of Ramadan&lt;br&gt;
  $ramadan = MultiCarbon::createHijri(1446, 9, 1);&lt;br&gt;
  echo $ramadan-&amp;gt;gregorian()-&amp;gt;format('Y-m-d'); // 2025-03-01&lt;/p&gt;




&lt;p&gt;Calendar-Aware Arithmetic&lt;/p&gt;

&lt;p&gt;This is where it gets interesting. Adding a month in Jalali isn't the same as adding a month in Gregorian — month lengths differ. MultiCarbon handles this automatically:&lt;/p&gt;

&lt;p&gt;// Shahrivar has 31 days, Mehr has 30&lt;br&gt;
  $date = MultiCarbon::createJalali(1404, 6, 31);&lt;br&gt;
  $date-&amp;gt;addMonth();&lt;br&gt;
  echo $date-&amp;gt;format('Y/m/d'); // 1404/07/30 — clamped to Mehr's max&lt;/p&gt;

&lt;p&gt;// Leap year handling&lt;br&gt;
  $date = MultiCarbon::createJalali(1403, 12, 30); // Esfand 30 (1403 is leap)&lt;br&gt;
  $date-&amp;gt;addYear();&lt;br&gt;
  echo $date-&amp;gt;format('Y/m/d'); // 1404/12/29 — clamped (1404 is not leap)&lt;/p&gt;




&lt;p&gt;Localized Names — Persian &amp;amp; Arabic&lt;/p&gt;

&lt;p&gt;Month names, weekday names, and even AM/PM are fully localized:&lt;/p&gt;

&lt;p&gt;$date = MultiCarbon::createJalali(1404, 3, 15);&lt;/p&gt;

&lt;p&gt;echo $date-&amp;gt;jalali()-&amp;gt;monthName;    // خرداد&lt;br&gt;
  echo $date-&amp;gt;jalali()-&amp;gt;dayName;      // پنجشنبه&lt;/p&gt;

&lt;p&gt;echo $date-&amp;gt;hijri()-&amp;gt;monthName;     // ذیحجه&lt;br&gt;
  echo $date-&amp;gt;hijri()-&amp;gt;dayName;       // الخمیس&lt;/p&gt;




&lt;p&gt;Farsi, Arabic &amp;amp; Latin Digits&lt;/p&gt;

&lt;p&gt;Switch the digit system globally with one line:&lt;/p&gt;

&lt;p&gt;MultiCarbon::setDigitsType(MultiCarbon::DIGITS_FARSI);&lt;br&gt;
  echo MultiCarbon::createJalali(1404, 1, 1)-&amp;gt;format('Y/m/d');&lt;br&gt;
  // ۱۴۰۴/۰۱/۰۱&lt;/p&gt;

&lt;p&gt;MultiCarbon::setDigitsType(MultiCarbon::DIGITS_ARABIC);&lt;br&gt;
  echo MultiCarbon::createHijri(1446, 9, 1)-&amp;gt;format('Y/m/d');&lt;br&gt;
  // ١٤٤٦/٠٩/٠١&lt;/p&gt;

&lt;p&gt;MultiCarbon::setDigitsType(MultiCarbon::DIGITS_LATIN); // reset&lt;/p&gt;




&lt;p&gt;diffForHumans() in Persian &amp;amp; Arabic&lt;/p&gt;

&lt;p&gt;echo MultiCarbon::createJalali(1403, 1, 1)-&amp;gt;diffForHumans();&lt;br&gt;
  // 1 سال پیش&lt;/p&gt;

&lt;p&gt;echo MultiCarbon::createHijri(1445, 1, 1)-&amp;gt;diffForHumans();&lt;br&gt;
  // منذ 1 سنة&lt;/p&gt;




&lt;p&gt;Calendar-Aware Boundaries&lt;/p&gt;

&lt;p&gt;Start/end of month and year respect the active calendar:&lt;/p&gt;

&lt;p&gt;$date = MultiCarbon::createJalali(1404, 6, 15, 14, 30, 0);&lt;/p&gt;

&lt;p&gt;echo $date-&amp;gt;copy()-&amp;gt;startOfMonth()-&amp;gt;format('Y/m/d H:i:s');&lt;br&gt;
  // 1404/06/01 00:00:00&lt;/p&gt;

&lt;p&gt;echo $date-&amp;gt;copy()-&amp;gt;endOfMonth()-&amp;gt;format('Y/m/d H:i:s');&lt;br&gt;
  // 1404/06/31 23:59:59&lt;/p&gt;

&lt;p&gt;echo $date-&amp;gt;copy()-&amp;gt;endOfYear()-&amp;gt;format('Y/m/d H:i:s');&lt;br&gt;
  // 1404/12/29 23:59:59 (not leap)&lt;/p&gt;




&lt;p&gt;Leap Year Detection&lt;/p&gt;

&lt;p&gt;MultiCarbon::createJalali(1403, 1, 1)-&amp;gt;isLeapYear(); // true&lt;br&gt;
  MultiCarbon::createJalali(1404, 1, 1)-&amp;gt;isLeapYear(); // false&lt;/p&gt;




&lt;p&gt;Comparisons &amp;amp; Diff&lt;/p&gt;

&lt;p&gt;All comparison methods work in the active calendar:&lt;/p&gt;

&lt;p&gt;$a = MultiCarbon::createJalali(1404, 1, 1);&lt;br&gt;
  $b = MultiCarbon::createJalali(1404, 1, 25);&lt;/p&gt;

&lt;p&gt;$a-&amp;gt;isSameMonth($b);  // true&lt;br&gt;
  $a-&amp;gt;isSameDay($b);    // false&lt;br&gt;
  $a-&amp;gt;lessThan($b);     // true&lt;br&gt;
  $a-&amp;gt;diffInDays($b);   // 24&lt;/p&gt;




&lt;p&gt;Convert from Carbon&lt;/p&gt;

&lt;p&gt;Already using Carbon in your project? Convert seamlessly:&lt;/p&gt;

&lt;p&gt;$carbon = \Carbon\Carbon::parse('2025-03-21');&lt;br&gt;
  $mc = MultiCarbon::fromCarbon($carbon);&lt;/p&gt;

&lt;p&gt;echo $mc-&amp;gt;jalali()-&amp;gt;format('Y/m/d');  // 1404/01/01&lt;br&gt;
  echo $mc-&amp;gt;hijri()-&amp;gt;format('Y/m/d');   // 1446/09/21&lt;/p&gt;




&lt;p&gt;Calendar Properties&lt;/p&gt;

&lt;p&gt;Access all date components in the active calendar:&lt;/p&gt;

&lt;p&gt;$date = MultiCarbon::createJalali(1404, 6, 15);&lt;/p&gt;

&lt;p&gt;$date-&amp;gt;year;        // 1404&lt;br&gt;
  $date-&amp;gt;month;       // 6&lt;br&gt;
  $date-&amp;gt;day;         // 15&lt;br&gt;
  $date-&amp;gt;dayOfYear;   // 170&lt;br&gt;
  $date-&amp;gt;daysInMonth; // 31&lt;br&gt;
  $date-&amp;gt;quarter;     // 2&lt;br&gt;
  $date-&amp;gt;weekOfYear;  // 36&lt;br&gt;
  $date-&amp;gt;isWeekend(); // false (Iranian week: Fri is weekend)&lt;/p&gt;




&lt;p&gt;Serialization&lt;/p&gt;

&lt;p&gt;$date = MultiCarbon::createJalali(1404, 7, 10, 8, 30, 0);&lt;/p&gt;

&lt;p&gt;$date-&amp;gt;toDateString();  // "1404-07-10"&lt;br&gt;
  $date-&amp;gt;toArray();&lt;br&gt;
  // ['year' =&amp;gt; 1404, 'month' =&amp;gt; 7, 'day' =&amp;gt; 10, 'hour' =&amp;gt; 8, 'minute' =&amp;gt; 30, 'second' =&amp;gt; 0]&lt;/p&gt;

&lt;p&gt;echo $date; // "1404/07/10 08:30:00"&lt;/p&gt;




&lt;p&gt;Laravel Integration&lt;/p&gt;

&lt;p&gt;MultiCarbon ships with a Laravel service provider, facade, and Blade directives out of the box:&lt;/p&gt;

&lt;p&gt;// Global helpers&lt;br&gt;
  jdate('Y/m/d H:i:s');                         // Current Jalali date&lt;br&gt;
  hdate('Y/m/d');                                // Current Hijri date&lt;/p&gt;

&lt;p&gt;// Blade directives&lt;br&gt;
  &lt;a class="mentioned-user" href="https://dev.to/jdate"&gt;@jdate&lt;/a&gt;('Y/m/d H:i:s')                         // Current Jalali&lt;br&gt;
  @hdate('Y/m/d')                                // Current Hijri&lt;br&gt;
  @jalali($user-&amp;gt;created_at, 'Y/m/d')           // Convert to Jalali&lt;br&gt;
  @hijri($post-&amp;gt;published_at, 'Y/m/d')          // Convert to Hijri&lt;/p&gt;




&lt;p&gt;How It Works Under the Hood&lt;/p&gt;

&lt;p&gt;MultiCarbon uses debug_backtrace() to detect whether a property or method is accessed by your code or by Carbon's internal engine. This means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When you call $date-&amp;gt;year → returns the Jalali/Hijri year&lt;/li&gt;
&lt;li&gt;When Carbon internally calls $this-&amp;gt;year → returns Gregorian so parent logic doesn't break&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Links:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/hpakdaman/multicarbon" rel="noopener noreferrer"&gt;https://github.com/hpakdaman/multicarbon&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Packagist: &lt;a href="https://packagist.org/packages/hpakdaman/multicarbon" rel="noopener noreferrer"&gt;https://packagist.org/packages/hpakdaman/multicarbon&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;I'd love to hear your feedback, suggestions, or feature requests. Feel free to open an issue or drop a comment below!&lt;/p&gt;

</description>
      <category>carbon</category>
      <category>multicarbon</category>
      <category>jalali</category>
      <category>laravel</category>
    </item>
  </channel>
</rss>
