Util
class Util (View source)
| internal |
Methods
If the given value is not an array and not null, wrap it in one.
Return the default value of the given value.
Get the class name of the given parameter's type, if possible.
Get a contextual attribute from a dependency.
Details
static array
arrayWrap(mixed $value)
If the given value is not an array and not null, wrap it in one.
From Arr::wrap() in Illuminate\Support.
static mixed
unwrapIfClosure(mixed $value, mixed ...$args)
Return the default value of the given value.
From global value() helper in Illuminate\Support.
static string|null
getParameterClassName(ReflectionParameter $parameter)
Get the class name of the given parameter's type, if possible.
From Reflector::getParameterClassName() in Illuminate\Support.
static ReflectionAttribute|null
getContextualAttributeFromDependency(ReflectionParameter $dependency)
Get a contextual attribute from a dependency.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.