---
title: "The once() Memoization Helper is Coming to Laravel 11"
url: https://daily.dev/posts/the-once-memoization-helper-is-coming-to-laravel-11-b6etrcwpv
source_url: https://laravel-news.com/once-helper
type: article
source: "Laravel News"
published: 2024-02-02T14:22:56.798Z
updated: 2024-05-09T08:58:27.770Z
tags: ["php", "laravel"]
reading_time: 2
upvotes: 19
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The once() Memoization Helper is Coming to Laravel 11

**[Laravel News](https://daily.dev/sources/ln)** · 2 min read · 19 upvotes · 1 comments

## Summary

Laravel 11 introduces the once() function, which ensures that the same value is returned no matter how many times an object method is called. It is useful when you want to ensure that code runs only once.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/once-helper>

## Community discussion

Top comments from developers on daily.dev.

**@chatino** · 0 upvotes

> Great!

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/the-once-memoization-helper-is-coming-to-laravel-11-b6etrcwpv)
