Vouchers
Description
Vouchers manages voucher records and administration flows inside Enso.
The package exposes create/edit/table/export endpoints, persists voucher entries with creator/updater tracking, and integrates with measurement units and the shared form/table infrastructure.
Installation
This is a proprietary package distributed through the private Enso registry.
Run the migrations:
php artisan migrate
Features
- CRUD endpoints for vouchers.
- Table bootstrap, data, and export endpoints.
- JSON form template and table template integration.
track-whoauditing on the voucher model.
Usage
Routes are registered under:
- prefix:
api/commercial/vouchers - name prefix:
commercial.vouchers. - middleware:
api,auth,core
Endpoints:
GET createPOST /GET {voucher}/editPATCH {voucher}DELETE {voucher}GET initTableGET tableDataGET exportExcel
Main model:
LaravelEnso\Vouchers\Models\Voucher
API
This package exposes its backend integration through the routes, controllers, services, jobs, and configuration points referenced in the usage examples above.
Consumers should rely on the published config keys, documented route groups, and explicit service classes shown in the examples. Internal helper classes, listeners, casts, and background jobs are implementation details unless the README calls them out as extension points.
Depends On
Required Enso packages:
laravel-enso/core↗laravel-enso/forms↗laravel-enso/measurement-units↗laravel-enso/tables↗laravel-enso/track-who↗
Companion frontend package:
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!