定制 ecoleplus/filament-subs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ecoleplus/filament-subs

最新稳定版本:v1.0.14

Composer 安装命令:

composer require ecoleplus/filament-subs

包简介

This is my package filament-subscriptions

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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! 🙏

Buy Me A Coffee

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-13