function
Global
/
optional
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
optional
optional ( ) : mixed
Provide access to optional objects.
Parameters
- $value mixed
- $callback callable|null