ecoleplus/filament-subs
最新稳定版本:v1.0.14
Composer 安装命令:
composer require ecoleplus/filament-subs
包简介
This is my package filament-subscriptions
README 文档
README
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Support us
If you like this package, consider supporting us by donating to support our development. Your support is greatly appreciated! 🙏
Installation
You can install the package via composer:
composer require ecoleplus/filament-subs
You can publish and run the migrations with:
php artisan vendor:publish --tag="filament-subscriptions-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="filament-subscriptions-config"
This is the contents of the published config file:
return [ "currency" => " MAD", "model" => "App\\Models\\User", ];
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-subscriptions-views"
Usage
use EcolePlus\FilamentSubscription\FilamentSubscriptionPlugin; ... return $panel ->plugins([ FilamentSubscriptionPlugin::make(), ]);
use EcolePlus\FilamentSubscription\Traits\PlanSubscriptions; class User extends Authenticatable { use PlanSubscriptions; }
You can use the trait in any model you want as long as you have set the model in the config file.
Testing
composer test
Contributing
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-13