Download the PHP package carkii/notifier without Composer
On this page you can find all versions of the php package carkii/notifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package notifier
notifier
Notifier is a laravel library that helps you to popup notifications to your registered users.
requirements
1- Jquery
How to install ?
- Composer: type
configaration (provider & alias)
in , add notifier service provider :
and add aliase to same file:
publish
publish the required files by typing in terminal.
This will add the following to your project:
1- /config/notifier.php
2- /resources/views/notifications/_cardExample.blade.php
3- /resources/views/notifications/_ModalExample.blade.php
4- /public/css/notifications.css
5- /public/js/notifications.js
migrate table
in your terminal, type :
Note: this library supposed that you already migrated the users table under name in your database.
add CSRF_token
add CSRF_token to your head tag, add: to your
tag in htmlHow to use?
1- Modal (popup)
1- login in to your website
2- add the following at the end of your page (default: app.blade.php):
3- remove the first underscore (_) from to be as . (this example is using bootstrap)
Note:
- break($days,$hours,$minutes) is used to add a break time between notifications.
- the first underscore of your notification file tells Notifier to ignore this file.
- All of your notifications are located in , each notification in each file (blade template) So, whenever you add a file to this folder, it means you are adding a new notification to your list.
4- visit your website :)
2- Card (list of notifications)
1- login in to your website
2- add the following to your page (default: app.blade.php, recommended in navbar):
3- remove the first underscore (_) from to be as . (this example is using bootstrap)
4- visit your website :)