Skip to content

Glossary: Laravel

abort() / abort_unless()

Also written: abort, abort_unless

Helpers that stop a request with an error status. abort(404) always stops, while abort_unless($ok, 403) stops unless the condition is true.

Where the book teaches it

Related terms

Status codeAuthorization