LaravelPackages.net
Acme Inc.
Toggle sidebar
makingcg/subscription

Subscription module for all great payment gateway

219
0
About makingcg/subscription

makingcg/subscription is a Laravel package for subscription module for all great payment gateway. It currently has 0 GitHub stars and 219 downloads on Packagist. Install it with composer require makingcg/subscription. Discover more Laravel packages by makingcg or browse all Laravel packages to compare alternatives.

Last updated

Subscription module for all great payment gateway

Installation

You can install the package via composer:

composer require VueFileManager/subscription

You can publish and run the migrations with:

php artisan vendor:publish --provider="VueFileManager\\Subscription\SubscriptionServiceProvider" --tag="subscription-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --provider="VueFileManager\\Subscription\SubscriptionServiceProvider" --tag="subscription-config"

This is the contents of the published config file:

Functions

Subscription

Get all active features under plan:

$subscription->fixedFeatures();

Get single feature under plan:

$subscription->feature('max_storage_amount');

Determine if user has subscription

$user->hasSubscription()

Record usage

$subscription->recordUsage('bandwidth', 2342);

Testing

composer test

Credits

Star History Chart