Laravel Package for Discount and Promo Codes
Fund package maintenance!
Installs: 1 561
- php: ^7.4|^8.0
- tipoff/authorization: ^2.8.6
- tipoff/checkout: ^2.7.2
- tipoff/support: ^2.1.5
- tipoff/test-support: ^2.0.1
This package is auto-updated.
Last update: 2023-05-20 22:00:48 UTC
You can install the package via composer:
composer require tipoff/discounts
The migrations will run from the package. You can extend the Models from the package if you need additional classes or functions added to them.
You can publish the config file with:
php artisan vendor:publish --provider="Tipoff\Discounts\DiscountsServiceProvider" --tag="discounts-config"
We include the following model:
List of Models
For each of these models, this package implements an authorization policy that extends the roles and permissions approach of the tipoff/authorization package. The policies for each model in this package are registered through the package and do not need to be registered manually.
The models also have Laravel Nova resources in this package and they are also registered through the package and do not need to be registered manually.
Registering the Nova resources
If you would like to use the Nova resources included with this package, you need to register it manually in your
NovaServiceProvider in the
Nova::resources([ \Tipoff\Discounts\Nova\Discount::class, ]);
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.