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
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:
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);
composer test