colbeh/logs

laravel view daily logs.

Installs: 98

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:Blade

Type:laravel-package

1.2.1 2023-08-12 14:31 UTC

This package is auto-updated.

Last update: 2024-12-12 17:29:07 UTC


README

1- Composer require colbeh/logs

2- add this to config/app.php

    Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class,

3- define gate in AppServiceProvider :

    Gate::define('viewLogs', function ($user) {
        return in_array($user->username, [
            'admin'
            // any admin username 
        ]);
    });

4- Go to

view daily logs :

    domain.com/log-viewer

view laravel log:

    domain.com/log-viewer/laravel

Upgrade:

    composer require colbeh/logs:x.x.x