function
Global
/
abort_if
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
abort_if
abort_if ( ) : void
Throw an HttpException with the given data if the given condition is true.
Parameters
- $boolean bool
- $code Symfony\...\Response|Responsable |int
- $message string
- $headers array