Storing payment made simple.
For detailed documentation visit Payable Documentation
You can install the package via composer:
composer require pratiksh/payable
Packages Contains 3 table
- fiscals
- payments
- payment_histories
php artisan vendor:publish --tag=payable-migrations
Install payable
php artisan vendor:publish --tag=payable-config
Migrate Database
php artisan migrate
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;
}
$product = Product::first();
$product->pay(100)
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.