Download the PHP package moirei/laravel-vouchers without Composer
On this page you can find all versions of the php package moirei/laravel-vouchers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download moirei/laravel-vouchers
More information about moirei/laravel-vouchers
Files in moirei/laravel-vouchers
Download moirei/laravel-vouchers
More information about moirei/laravel-vouchers
Files in moirei/laravel-vouchers
Vendor moirei
Package laravel-vouchers
Short Description Manage ecommerce vouchers
License MIT
Homepage https://github.com/augustusnaz/laravel-vouchers
Package laravel-vouchers
Short Description Manage ecommerce vouchers
License MIT
Homepage https://github.com/augustusnaz/laravel-vouchers
Please rate this library. Is it a good library?
Informations about the package laravel-vouchers
Laravel Vouchers
An ecommerce voucher generator. It associates vouchers with one or more eloquent model and allows multiple models to own/redeem vouchers.
:heavy_check_mark: Requirements
- Laravel ^8
- PHP ^8.1
Documentation
All documentation is available at the documentation site.
:green_heart: Unique Features
- Associate one voucher with one or more items
- Flexible redeemer models: vouchers can be redeemed by any model.
User
,Admin
,Guest
models. - Flexible voucher models: voucher can be associated with any model.
Product
,Variant
,Ticket
, whatever else. - Use vouchers once or multiple times
- Limit access: can define model instances that are allowed or excluded from redeeming a Voucher
- Multiple limit scheme; exhaust redeems per instance, per user or per product
Example usage:
Installation
You can install the package via composer:
Next publish the migration with
Then run the migrations:
You can publish the config file with:
Notes
- The
allow_models
anddeny_models
attributes mentioned above are actually saved ascan_redeem
andcannot_redeem
internally. They are mutated on boot creating or updating. - If you manage your resources with Nova, Nova Multiselect can be used directly with the
can_redeem
andcannot_redeem
attributes. Example code here.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-vouchers with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
illuminate/config Version ^8|^9
illuminate/database Version ^8|^9
illuminate/support Version ^8|^9
laravel/framework Version ^8|^9
illuminate/config Version ^8|^9
illuminate/database Version ^8|^9
illuminate/support Version ^8|^9
laravel/framework Version ^8|^9
The package moirei/laravel-vouchers contains the following files
Loading the files please wait ....