sarfraznawaz2005 / lognotify
Laravel package to show notifications in realtime whenever there is new log entry made anywhere in application.
Requires
- illuminate/support: ~5
- vakata/websocket: ^1.0
This package is auto-updated.
Last update: 2024-11-12 05:25:42 UTC
README
Laravel LogNotify
Laravel package to automatically show notifications in real-time whenever there is new log entry made anywhere in application.
Screenshot
Requirements
- PHP >= 5.6
- Laravel 5
Installation
Via Composer
$ composer require sarfraznawaz2005/lognotify
For Laravel < 5.5:
Add Service Provider to config/app.php
in providers
section
Sarfraznawaz2005\LogNotify\LogNotifyServiceProvider::class,
Publish package's config file by running below command:
$ php artisan vendor:publish --provider="Sarfraznawaz2005\LogNotify\LogNotifyServiceProvider"
It should publish config/lognotify.php
config file.
Usage
Add this in your app layout file/footer:
@include('logNotify::view')
And then start socket server by issuing following command:
$ php artisan lognotify:serve
Now whenever new entry is made in laravel log file, you will see popup notification at bottom right of your application.
Customizing Notifications
You can customize notifications ui by modifying published file at resources/views/vendor/logNotify/view.blade.php
Credits
License
Please see the license file for more information.