1. nainstalovat modul
composer require --ignore-platform-req=php luyadev/luya-module-errorapi
2. ./vendor/bin/luya migrate
3. ./vendor/bin/luya import
4. config
https://it-tools.tech/token-generator
'modules' => [ // ... 'errorapi' => [ 'class' => 'luya\errorapi\Module', 'adapters' => [ [ 'class' => 'luya\errorapi\adapters\MailAdapter', 'recipient' => ['errors@example.com'], ], [ 'class' => 'luya\errorapi\adapters\SlackAdapter', 'token' => 'xyz.xyz.xyz.xyz', ], [ 'class' => 'luya\errorapi\adapters\SentryAdapter', 'token' => 'YOUR_SENTRY_USER_AUTH_TOKEN', 'organisation' => 'organisationslug', 'team' => 'teamslug', ] ], ], ]
'components' => [ // ... 'errorHandler' => [ 'api' => 'https://example.com/errorapi', // where example is the domain you have setup error api above 'transferException' => true, ], ]