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

Once Laravel Package

spatie/once

A tiny PHP helper to run code only once per request. Cache expensive computations or object initialization in a single spot, keyed automatically by the call site. Great for computed properties, accessors, and avoiding duplicate work.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Optimizes performance of repeated operations within a single request without external caching infrastructure.
  • Reduces technical debt by eliminating custom memoization logic in application code.
  • Enables efficient roadmap execution for performance-critical features with minimal engineering effort.
  • Build vs buy: preferable to building a custom solution due to simplicity, reliability, and maintenance by a trusted community.
  • Ideal use cases: configuration lookups,
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