colbeh/logs

laravel view daily logs.
128
Install
composer require colbeh/logs
Latest Version:1.2.1
License:MIT
Last Updated:Aug 12, 2023
Links: GitHub  ·  Packagist
Maintainer: sadeghbarout

Installation:

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

Related Packages

spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or applicatio...

63,006,375 5,902
isbkch/laravel5-tail

A tail command for Laravel 5

1,266 1