kodekeep / laravel-notification-methods
:package_description
Fund package maintenance!
faustbrian
konceiver.dev/open-source/support-us
Installs: 1 326
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: ^7.4
- guzzlehttp/guzzle: ^6.5
- illuminate/contracts: ^6.0|^7.0
- illuminate/notifications: ^6.0|^7.0
- illuminate/support: ^6.0|^7.0
- illuminate/validation: ^6.0|^7.0
- laravel/nexmo-notification-channel: ^2.3
- laravel/slack-notification-channel: ^2.0
- nexmo/client: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- fzaninotto/faker: ^1.9
- graham-campbell/analyzer: ^2.4
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.3
- spatie/phpunit-snapshot-assertions: ^3.1
- symfony/var-dumper: 4.4
This package is auto-updated.
Last update: 2022-01-25 04:29:55 UTC
README
This package was created by, and is maintained by Brian Faust, and provides Notification Methods for Laravel Eloquent Models.
Installation
composer require konceiver/laravel-notification-methods
Usage
Add the trait
class User extends Model { use HasNotificationMethods; }
$user->notificationMethods()->create([ 'name' => 'My Channel', 'channel' => 'discord', 'discord_url' => 'https://google.com', ]);
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover a security vulnerability within this package, please send an e-mail to hello@konceiver.dev. All security vulnerabilities will be promptly addressed.
Credits
This project exists thanks to all the people who contribute.
Support Us
We invest a lot of resources into creating and maintaining our packages. You can support us and the development through GitHub Sponsors.
License
Laravel Notification Methods is an open-sourced software licensed under the MPL-2.0.