Laravel package to automatically show notifications in real-time whenever there is new log entry made anywhere in application.
MIT License
Laravel package to automatically show notifications in real-time whenever there is new log entry made anywhere in application.
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.
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.
You can customize notifications ui by modifying published file at resources/views/vendor/logNotify/view.blade.php
Please see the license file for more information.