Blaze ensures applications that push Blade to its limits stay fast, even as your component count grows.
Results vary with component complexity and optimization strategy.
Get started
No changes to your existing templates required.
See limitations// Option A: Per-component directive @blaze // Option B: Optimize entire directories Blaze::optimize() ->in(resource_path('views/components/app')); ->in(resource_path('views/components/admin'));
Optimization strategies
By default, Blaze uses an optimized compiler — a drop-in replacement that works for virtually all components. For even greater gains, enable memoization or compile-time folding.
Learn moreTemplates become optimized PHP functions. Drop-in replacement with no configuration needed.
Up to 97% overhead reduction
Cache repeated component renders. Ideal for icons, avatars, and elements that appear many times with the same props.
Automatically cached components
Pre-render components at compile time into static HTML. Zero runtime cost — the component ceases to exist.
Eliminate all runtime overhead
Built-in profiler
Flame charts, strategy breakdowns, and per-component timing — all in one view. Identify bottlenecks and measure the impact of each optimization.
Blaze::debug(); // Enable profiler