class Onceable (View source)
| void | __construct(string $hash, object|null $object, callable $callable)
Create a new onceable instance. | |
| static Onceable|null | tryFromTrace(array $trace, callable $callable)
Tries to create a new onceable instance from the given trace. | |
| static object|null | objectFromTrace(array $trace)
Computes the object of the onceable from the given trace, if any. | |
| static string|null | hashFromTrace(array $trace, callable $callable)
Computes the hash of the onceable from the given trace. |
Create a new onceable instance.
Tries to create a new onceable instance from the given trace.
Computes the object of the onceable from the given trace, if any.
Computes the hash of the onceable from the given trace.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Support/Onceable.html