function
Global
/
throw_unless
You are viewing an older version of the documentation. For the latest, please visit master documentation.
throw_unless
throw_unless ( ) : mixed
Throw the given exception unless the given condition is true.
Parameters
- $condition mixed
- $exception Throwable |string
- $parameters mixed