ecoleplus / filament-subs
This is my package filament-subscriptions
Fund package maintenance!
:vendor_name
Requires
- php: ^8.2|^8.3
- filament/filament: ^3.2
- flowframe/laravel-trend: ^0.2.0
- illuminate/contracts: ^10.0|^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- spatie/laravel-ray: ^1.35
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.