2017 © Pedro Peláez
 

library laravel-notification

Notification system for laravel

image

padosoft/laravel-notification

Notification system for laravel

  • Monday, May 14, 2018
  • by lopadova
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Notification

License, (*1)

System for managing Laravel Notifications via database., (*2)

Installation

This package can be used in Laravel 5.8 or higher. For previous version or Laravel please check v 1.* of this package NB: From version 4.0.0 of this package Nexmo/Vonage and Slack Notification is not automatically supported. To send Notifications via SMS or Slack see official Laravel documentation, (*3)

  1. composer require padosoft/laravel-notification
  2. Publish the config file by running php artisan vendor:publish --provider="Padosoft\Laravel\Notification\NotificationServiceProvider" --tag="migrations".

Config

If you want you can publish also the config of the package Publish the config file by running php artisan vendor:publish --provider="Padosoft\Laravel\Notification\NotificationServiceProvider" --tag="config"., (*4)

Usage

You can generate a Notification Class with an artisan command and register it into database., (*5)

php artisan notification-manager:create user_is_registered

This command will create an App\Notifications\user_is_registered class. Now you can customize your notification. To enable the notifications you can put to 1 the active field on the database. To set the recipients of your notification you have to populate mynotifications_users and mynotifications_roles table. Then you can send your notification like this:, (*6)

NotificationManager::dispatch(new \App\Notifications\user_is_registered('prova messaggio','prova'))

Contact

Open an issue on GitHub if you have any problems or suggestions., (*7)

License

The contents of this repository is released under the MIT license., (*8)

The Versions