Mail: [email protected] Phone: +1(424)231-4091


On every request made to a Crud resource, NexoPOS triggers a CrudHookEvent, this event provides 2 parameters:

  • the instance (the crud instance)
  • the query builder instance (Illuminate\Database\Query\Builder).

The purpose of this event is to allow any source (modules, core) to interact with how the query is built for a specific crud instance. This can be useful to apply additional filters or additional jointure.

On the following example, we'll create an even listener that will filter all orders, to only display those created by the logged user.