denniseilander / pulse-log-files
A lightweight Laravel Pulse package for effortlessly viewing available log files in your current project.
Installs: 12 004
Dependents: 0
Suggesters: 0
Security: 0
Stars: 19
Watchers: 1
Forks: 1
Open Issues: 1
Requires
- php: ^8.1
- illuminate/contracts: ^10.0|^11.0
- laravel/pulse: ^1.0@beta
- spatie/laravel-package-tools: ^1.16.0
Requires (Dev)
- laravel/pint: ^1.0
- nesbot/carbon: ^2.63
- nunomaduro/collision: ^7.8|^8.1
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0|^9.0
- pestphp/pest: ^2.31
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
README
A lightweight Laravel Pulse package for effortlessly viewing available log files in your current project.
Installation
You can install the package via composer:
composer require denniseilander/pulse-log-files
Register the recorder
To let Laravel Pulse check the available log files, you need to register the recorder in the config/pulse.php
file.
return [ ... 'recorders' => [ \Denniseilander\LogFiles\Recorders\LogFiles::class => [], ], ];
Change the interval (optional)
By default, the recorder will be checked once every 5 minutes.
You can change this by adding the run_every_seconds
key to the array.
'recorders' => [ \Denniseilander\LogFiles\Recorders\LogFiles::class => [ 'run_every_seconds' => 10 * 60, // 10 minutes ], ],
Optionally, you can publish the views using
php artisan vendor:publish --tag="pulse-log-files-views"
Usage
You can use the component in your views like this:
<livewire:pulse.log-files cols="4" />
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.