Management system of internal notifications for Laravel 5.*
difftechnology/notifynder is a Laravel package for management system of internal notifications for laravel 5.*.
It currently has 0 GitHub stars and 32 downloads on Packagist.
Install it with composer require difftechnology/notifynder.
Discover more Laravel packages by difftechnology
or browse all Laravel packages to compare alternatives.
Last updated
Add it on your composer.json
"difftechnology/notifynder": ""
and run
composer update
Add the following string to config/app.php
Providers array:
Difftechnology\Notifynder\NotifynderServiceProvider::class,
Aliases array:
'Notifynder'=>Difftechnology\Notifynder\Facades\Notifynder::class,
Publish the migration as well as the configuration of notifynder with the following command:
php artisan vendor:publish --provider="Difftechnology\Notifynder\NotifynderServiceProvider"
Run the migration
php artisan migrate
Set up category of notification, think about it as the body of the notification:
php artisan notifynder:create:category "user.following" "{from.username} started to follow you"
To send a notification with notifynder, that's all you have to do.
Notifynder::category('user.following')
->from($from_user_id)
->to($to_user_id)
->url('http://www.yourwebsite.com/page')
->send();
Retrieving Notifications
// @return Collection
Notifynder::getAll($user_id,$limit,$paginateBool);
Reading Notifications:
// @return number of notifications read
Notifynder::readAll($user_id);
To know more, such as the advance usage of Notifynder Visit the Notifynder Wiki.
Forked from fenos/Notifynder