function
Global
/
throw_if
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
throw_if
throw_if ( ) : mixed
Throw the given exception if the given condition is true.
Parameters
- $condition mixed
- $exception TException|class-string<\TException>|string
- $parameters mixed