pratiksh / payable
Storing payment made simple.
v1.1.0
2024-05-11 12:09 UTC
Requires
- php: ^7.4|^8.0
Requires (Dev)
- laravel/pint: ^1.15
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
README
Storing payment made simple.
For detailed documentation visit Payable Documentation
Installation
You can install the package via composer:
composer require pratiksh/payable
Publish Migrations
Packages Contains 3 table
- fiscals
- payments
- payment_histories
php artisan vendor:publish --tag=payable-migrations
Publish Config file
Install payable
php artisan vendor:publish --tag=payable-config
Migrate Database
php artisan migrate
Setup
Payment is polymorphic
, hence with the use of trait HasPayable
can be used with any model.
use Pratiksh\Payable\Traits\HasPayable;
class Product extends Model
{
use HasPayable;
}
Usages
$product = Product::first();
$product->pay(100)
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email pratikdai404@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.