yuges-code/laravel-subscribable

๐Ÿ”” Package for easily attaching subscriptions to Laravel eloquent models

1.0.2 2025-03-17 20:49 UTC

This package is auto-updated.

Last update: 2025-04-08 15:02:16 UTC


README

Build GitHub Branch Check Runs GitHub Tests Action Status Project GitHub Release Packagist Downloads GitHub License Packagist Stars Packagist Dependency Version Quality

Laravel Subscribable

๐Ÿ”” Package for easily attaching subscriptions to Laravel eloquent models


๐Ÿ’ฟ Installation

โ†’ Composer

You can install the package via composer:

composer require yuges-code/laravel-subscribable

โ†’ Publishing Config

Publishing the config file (config/subscribable.php) is optional:

php artisan vendor:publish --provider="Yuges\Subscribable\Providers\SubscribableServiceProvider" --tag="subscribable-config"

โ†’ Publishing Migrations

You need to publish the migration to create the subscriptions table:

php artisan vendor:publish --provider="Yuges\Subscribable\Providers\SubscribableServiceProvider" --tag="subscribable-migrations"

โ†’ Running Migrations

After that, you need to run migrations:

php artisan migrate

๐Ÿงช Running Tests

โ†’ PHPUnit tests

To run tests, run the following command:

composer test

โš–๏ธ License

The MIT License (MIT). Please see License File for more information.


๐Ÿ™†๐Ÿผโ€โ™‚๏ธ Authors Information

Created in 2025 by: