Skip to content

Main package of notification module which saves all notifications to database and allows to attach any other Template channels

License

Notifications You must be signed in to change notification settings

EscolaLMS/Notifications

Repository files navigation

Notifications

Notifications package

swagger codecov phpunit downloads downloads downloads

What does it do

This package is used for logging and broadcasting notifications for all EscolaLms packages events.

Installation

  • composer require escolalms/notifications
  • php artisan migrate
  • php artisan db:seed --class="EscolaLms\Notifications\Database\Seeders\NotificationsPermissionsSeeder"

Usage

All events emitted by EscolaLms packages will be logged in database and can be listed through API (and Admin Panel). There is a configuration file in which you can define events which should be excluded from being stored.

Endpoints

All the endpoints are defined in swagger

Tests

Run ./vendor/bin/phpunit --filter 'EscolaLms\\Notifications\\Tests' to run tests. See tests folder as it's quite good staring point as documentation appendix.

Test details: codecov phpunit

Admin panel

Left menu

Menu

List of notifications

List of notifications

Permissions

Permissions are defined in seeder

Events

No Events are defined in this package.

Listeners

  • EscolaLms\Notifications\Listeners\NotifiableEventListener - this listener listens to all events in EscolaLms namespace

Roadmap. Todo. Troubleshooting

  • ???

About

Main package of notification module which saves all notifications to database and allows to attach any other Template channels

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages