Laravel EnsoLaravel Enso
Guide
Back End
Front End
GitHub
Guide
Back End
Front End
GitHub
  • Back End

    • Action Logger
    • Addresses
    • Algolia
    • Algolia Webshop
    • API
    • Audits
    • Avatars
    • Cache Chain
    • Calendar
    • Cargo Partner
    • Categories
    • Charts
    • CI/CD
    • Cli
    • CNP Validator
    • Comments
    • Commercial
    • Companies
    • Core
    • Countries
    • Currencies
    • Data Export
    • Data Import
    • Discounts
    • Documents
    • Dynamic Methods
    • EAV
    • Emag
    • Enums
    • Excel
    • Facebook
    • Files
    • Filters
    • Financials
    • Forms
    • Frisbo
    • Google
    • Helpers
    • Holidays
    • How-to
    • Image Transformer
    • Impersonate
    • Interactions
    • Inventory
    • IO
    • Localisation
    • Lockable Models
    • Logs
    • Measurement Units
    • Meili Search
    • Meili Search Webshop
    • Menus
    • Migrator
    • Monitored Emails
    • Notifications
    • Packaging Units
    • PDF
    • People
    • Permissions
    • Product Eav
    • Product Lots
    • Products
    • Questionnaires
    • Rememberable
    • Roles
    • Sale Channels
    • Searchable
    • Select
    • Sentry
    • Services
    • Smart Bill
    • Sms Advert
    • Stripe
    • Tables
    • Tasks
    • Teams
    • Ticketing
    • Track Who
    • Tutorials
    • Typesense
    • Typesense Webshop
    • Unit Conversion
    • Upgrade
    • UPS
    • User Groups
    • Users
    • Versions
    • Virtual Call Center
    • Vouchers
    • Webshop
    • Webshop Commercial

Vouchers

LicenseStablePHPIssuesMerge Requests

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-who auditing on the voucher model.

Usage

Routes are registered under:

  • prefix: api/commercial/vouchers
  • name prefix: commercial.vouchers.
  • middleware: api, auth, core

Endpoints:

  • GET create
  • POST /
  • GET {voucher}/edit
  • PATCH {voucher}
  • DELETE {voucher}
  • GET initTable
  • GET tableData
  • GET 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:

  • @enso-ui/vouchers ↗

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

Edit this page on GitHub
Last Updated: 4/20/2026, 7:34:59 PM
Prev
Virtual Call Center
Next
Webshop