> For the complete documentation index, see [llms.txt](https://onevarez.gitbook.io/cli/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onevarez.gitbook.io/cli/build/hooks.md).

# Hooks

Laraboot is able to detect hooks by using a folder structure.&#x20;

Hook support is provided by buildtask `@core/hooks`

Every file within `.laraboot/hooks` will be executed just before finish the building [Process](/cli/build/process.md).

This functionality is provided by two core build tasks and hence must be enabled before using it.

```
laraboot task add @core/laraboot-hook-before-pack --format=file -vvv
laraboot task add @core/laraboot-packer --format=file -vvv
```
