Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Export Laravel Package

spatie/laravel-export

Export a Laravel app as a static site bundle. Crawls your routes to generate HTML for every URL and copies your public assets into an export folder, ready to upload to Netlify or any static host—keep Laravel tools locally while deploying static.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Hybrid CMS/Static Site Strategy: Enables teams to leverage Laravel’s dynamic backend (e.g., Nova/Filament for content management) while publishing static exports for performance, scalability, and cost-efficiency.
  • Decoupling Frontend/Backend: Allows frontend teams to iterate independently (e.g., using Laravel Blade/Inertia) while backend teams manage data via admin panels, then export static assets for CDN/edge hosting.
  • Roadmap for Jamstack/Headless: Supports a phased migration to static sites by incrementally replacing dynamic routes with exported HTML, reducing server load over time.
  • Build vs. Buy: Avoids reinventing static export logic (e.g., custom scripts or services like Netlify Functions) while retaining Laravel’s ecosystem (e.g., Eloquent, caching).
  • Use Cases:
    • Internal documentation portals (dynamic content + static hosting).
    • Marketing sites with CMS-driven content (e.g., blogs, case studies).
    • A/B testing static vs. dynamic routes (e.g., export high-traffic pages).

When to Consider This Package

Adopt if:

  • Your Laravel app has low-to-moderate dynamic interactivity (e.g., blogs, brochure sites) where static exports suffice for most users.
  • You need simpler, cheaper hosting (e.g., Netlify, Vercel, S3) without sacrificing Laravel’s tooling.
  • Your team uses Laravel admin panels (Nova/Filament) for content management but wants static benefits.
  • You’re migrating from dynamic to static incrementally (e.g., export non-critical routes first).

Look elsewhere if:

  • Your app requires real-time updates (e.g., dashboards, live collaboration).
  • You need server-side rendering for SEO (e.g., complex SPAs) and can’t pre-render all routes.
  • Your content is highly personalized (e.g., user-specific dashboards) or frequently updated (e.g., stock tickers).
  • You’re already using a dedicated static site generator (e.g., Hugo, Next.js) with no Laravel dependency.
  • Your public directory contains large assets (e.g., videos) that bloat the export bundle.

How to Pitch It (Stakeholders)

For Executives: "This package lets us keep using Laravel’s powerful backend (e.g., Nova for content management) while publishing static HTML—cutting hosting costs by 70%+ and improving load times. Think of it as ‘Netflix for our marketing site’: we edit content dynamically but serve it statically to users. Ideal for blogs, docs, or any site where 90% of traffic hits static pages."

For Engineering: *"Laravel Export automates static site generation by crawling your app’s routes and bundling them with assets. Key benefits:

  • Zero server management: Host on S3/Netlify with no PHP runtime.
  • Laravel-native: Works with Blade, Inertia, and admin panels (Nova/Filament).
  • Incremental adoption: Export non-critical routes first, then expand.
  • Performance: Static assets load faster, reducing CDN costs. Tradeoff: Pre-rendered HTML means no real-time updates, but we can cache dynamic routes separately. Example: Export our blog to Netlify, keep the admin in Laravel."*

For Design/Content Teams: "You’ll still use Laravel’s familiar tools (e.g., Nova) to edit content, but the live site will load instantly—no more waiting for PHP. Changes you make in the admin panel will be reflected in the next export (e.g., weekly). Perfect for blogs, case studies, or any content that doesn’t need live interactions."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport