A Laravel Nova tool to manage and keep track of each one of your logs files.
kabbouchi/nova-logs-tool is a Laravel package for a laravel nova tool to manage and keep track of each one of your logs files..
It currently has 72 GitHub stars and 365.212 downloads on Packagist (latest version v2.2.0).
Install it with composer require kabbouchi/nova-logs-tool.
Discover more Laravel packages by kabbouchi
or browse all Laravel packages to compare alternatives.
Last updated
A Laravel Nova tool to manage and keep track of each one of your logs files.

Behind the scenes kabbouchi/laravel-ward is used.
You can disable
laravel-wardroutes by addingLOG_VIEWER_ENABLE_ROUTES=falseto.envfile
You can install the package in to a Laravel app that uses Nova via composer:
composer require kabbouchi/nova-logs-tool
php artisan vendor:publish --tag=ward-assets --force
Next up, you must register the tool with Nova. This is typically done in the tools method of the NovaServiceProvider.
// in app/Providers/NovaServiceProvder.php
// ...
public function tools()
{
return [
// ...
new \KABBOUCHI\LogsTool\LogsTool(),
];
}
Publish the package configuration file.
php artisan vendor:publish --provider="KABBOUCHI\LogsTool\LogsToolServiceProvider"
// in app/Providers/NovaServiceProvder.php
// ...
public function tools()
{
return [
// ...
// don't return plain `true` value or anyone can see/download/delete the logs, make sure to check if user has permission.
(new \KABBOUCHI\LogsTool\LogsTool())
->canSee(function ($request) {
return auth()->user()->canSee();
})
->canDownload(function ($request) {
return auth()->user()->canDownload();
})
->canDelete(function ($request) {
return false;
}),
];
}
Click on the "nova-logs-tool" menu item in your Nova app to see the tool provided by this package.
Possible environment variables:
NOVA_LOGS_PER_PAGE=6
NOVA_LOGS_REGEX_FOR_FILES="/^laravel/"
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.