Laravel Nova icon Nova Packages

Installation Instructions

You can install the package in to a Laravel app that uses Nova via composer:

composer require kabbouchi/nova-logs-tool

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(),
    ];
}

Usage

Click on the "nova-logs-tool" menu item in your Nova app to see the tool provided by this package.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

The MIT License (MIT). Please see License File for more information.

Readme

Nova tool to for logs

Latest Version on Packagist Total Downloads

A Laravel Nova tool to manage and keep track of each one of your logs files.

screenshot of the backup tool

Behind the scenes kabbouchi/laravel-ward is used.

You can disable laravel-ward routes by adding LOG_VIEWER_ENABLE_ROUTES=false to .env file

Installation

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"

Authorization

// 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;
                }),
    ];
}

Usage

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/"

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

The MIT License (MIT). Please see License File for more information.

Reviews

Rated 5 stars out of 5

By Eugene van der Merwe on January 25, 2021

One of my favourite tools that I use on every single project. Great way to get clients to also see what's going on. And Georges is a fantastic developer.

Back to Top
Added 6 years ago
Last updated 2 Years Ago
Version v2.2.0
Nova Version ^4
Composer
kabbouchi/nova-logs-tool
GitHub stars 73
Packagist downloads 346,503

Favorites

30 users favorited

Rating

5.00
(out of 5)
★★★★★
★★★★
★★★
★★
8 ratings

Tags

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas