santran / browsernotifications
Integrate Browser Notifications to Laravel 5.2 and above.
Installs: 5 345
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.5.9
This package is not auto-updated.
Last update: 2024-11-23 21:41:13 UTC
README
Install (Laravel)
Install via composer
composer require santran/browsernotifications:dev-master
Add Service Provider to config/app.php
in providers
section
SanTran\BrowserNotifications\BrowserNotificationsProvider::class
Publish config file and view file, open console and enter bellow command:
php artisan vendor:publish
Config file 'browsernotifications.php' : version change
How to use ? Open your layouts file and add js to view.
@include("browsernotifications.browsernotifications")
Call js to show Notification:
$(document).ready(function () { showNotification(title, content, url, icon); });