Mecha CMS

Guard::abort()

Abort script execution.

2.0.0Static

Guard::abort(string $alert, $exit = true);

Example:

if (!Request::is('Get')) {
    Guard::abort('Method not allowed.');
}