function Global / abort_unless
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

abort_unless

abort_unless ( ) : void

Throw an HttpException with the given data unless the given condition is true.

Parameters

  • $boolean bool
  • $code Symfony\...\Response|Responsable |int
  • $message string
  • $headers array