limedeck/nova-cashier-overview
最新稳定版本:4.2.0
Composer 安装命令:
composer require limedeck/nova-cashier-overview
包简介
Interact with your Stripe subscriptions directly inside Nova.
README 文档
README
This Nova tool lets you:
- view a database subscription (subscription name is a parameter)
- view Stripe subscription details
- view invoices for a given subscription with a downloadable link
- change a subscription plan
- cancel a subscription
- resume a subscription
- avoid unnecessary Stripe API call when you load a resource to quickly get a status information and dive deeper if you need it
Default view of the subscription
Expanded view of the subscription
Disclaimer
This package has been heavily inspired by themsaid/nova-cashier-manager and was created to be in sync with latest changes in Cashier as well as to optimize default loads by avoiding a Stripe API request unless it's needed. Structure of this repository was inspired by spatie/skeleton-nova-tool.
Installation
You can install the nova tool in to a Laravel app that uses Nova via composer:
composer require limedeck/nova-cashier-overview
Next up, you use the resource tool with Nova. This is typically done in the fields method of the desired Nova Resource.
use LimeDeck\NovaCashierOverview\Subscription; // ... public function fields(Request $request) { return [ ID::make()->sortable(), ... Subscription::make(), // if you want to display a specific subscription or multiple Subscription::make('a-fancy-subscription-name'), ... ]; }
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email rudolf@limedeck.io instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 182.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 30
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-25

