let

Fires when the application finishes rendering.

Table of Contents
  1. Description
  2. Example

Description

This hook fires when the application finishes rendering. This hook may not fire if you execute the exit command at a particular point in hooks that were executed before this hook.

Example

Hook::set('let', function () {
    unset($_SESSION['alert']);
});

To ensure that this hook can still be fired at the end of the script, be sure to re-execute it before running the exit command:

Hook::fire('let');

exit;

body

Modifies the body part of the current HTML response.

content

Modifies the current HTML response.

enter

Modifies the current HTTP response headers.

exit

Fires after script execution ends.

get

Fires when the application is ready.

head

Modifies the head part of the current HTML response.

let

Fires when the application finishes rendering.

route

Sets the response body.

set

Fires when the application is ready.