Laravel 5 Browser Notifications
, (*1)
, (*2)
Install (Laravel)
Install via composer, (*3)
composer require santran/browsernotifications:dev-master
Add Service Provider to config/app.php in providers section, (*4)
SanTran\BrowserNotifications\BrowserNotificationsProvider::class
Publish config file and view file, open console and enter bellow command:, (*5)
php artisan vendor:publish
Config file 'browsernotifications.php' : version change, (*6)
How to use ?
Open your layouts file and add js to view., (*7)
@include("browsernotifications.browsernotifications")
Call js to show Notification:, (*8)
$(document).ready(function () {
showNotification(title, content, url, icon);
});