PHPackages                             mojtabaahn/laravel-web-logs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. mojtabaahn/laravel-web-logs

AbandonedArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

mojtabaahn/laravel-web-logs
===========================

Access Laravel/Lumen logs from web made easy.

2.0.2(3y ago)16112.7k7MITPHPPHP ^8.0|^7.4

Since May 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mojtabaahn/laravel-web-logs)[ Packagist](https://packagist.org/packages/mojtabaahn/laravel-web-logs)[ RSS](/packages/mojtabaahn-laravel-web-logs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (32)Used By (0)

[![Banner](https://github.com/mojtabaahn/laravel-web-logs/raw/main/banner.jpeg?raw=true)](https://github.com/mojtabaahn/laravel-web-logs/blob/main/banner.jpeg?raw=true)

View Laravel/Lumen logs in browser.
===================================

[](#view-laravellumen-logs-in-browser)

[![Packagist License](https://camo.githubusercontent.com/0d9feafb7708e596ca4a02de8ba9d5ddba0fe55c16ec47506f339b88618080ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6f6a7461626161686e2f6c61726176656c2d7765622d6c6f67733f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/0d9feafb7708e596ca4a02de8ba9d5ddba0fe55c16ec47506f339b88618080ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6f6a7461626161686e2f6c61726176656c2d7765622d6c6f67733f7374796c653d666f722d7468652d6261646765)[![Packagist Version](https://camo.githubusercontent.com/d8dbd9fdad9ebca65c793406207b0d0c05b46a933c6138c4d4c5b9f453ca01fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f6a7461626161686e2f6c61726176656c2d7765622d6c6f67733f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/d8dbd9fdad9ebca65c793406207b0d0c05b46a933c6138c4d4c5b9f453ca01fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f6a7461626161686e2f6c61726176656c2d7765622d6c6f67733f7374796c653d666f722d7468652d6261646765)[![GitHub repo size](https://camo.githubusercontent.com/02dbc5eeca9b7fb71004c017f1fea2b407499f37e46974418de980aaed24ac15/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6d6f6a7461626161686e2f6c61726176656c2d7765622d6c6f67733f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/02dbc5eeca9b7fb71004c017f1fea2b407499f37e46974418de980aaed24ac15/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6d6f6a7461626161686e2f6c61726176656c2d7765622d6c6f67733f7374796c653d666f722d7468652d6261646765)[![Packagist Downloads](https://camo.githubusercontent.com/ddf372f9b15b0b53d6f4661486f8f76e154abea49237084cba4890445e381250/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f6a7461626161686e2f6c61726176656c2d7765622d6c6f67733f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/ddf372f9b15b0b53d6f4661486f8f76e154abea49237084cba4890445e381250/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f6a7461626161686e2f6c61726176656c2d7765622d6c6f67733f7374796c653d666f722d7468652d6261646765)

Disclaimer
----------

[](#disclaimer)

This package is simply a lightweight web interface for Laravel and Lumen file-based logs. If you need an advanced debugging tool consider trying [Telescope](https://laravel.com/docs/8.x/telescope), [Debugbar](https://github.com/barryvdh/laravel-debugbar), [Clockwork](https://github.com/itsgoingd/clockwork) or [Ray](https://myray.app/)And if you need an error tracking software consider trying [Sentry](https://sentry.io/) and [Bugsnag](https://www.bugsnag.com/).

Screen Shot
-----------

[](#screen-shot)

[![screen shot](https://raw.githubusercontent.com/mojtabaahn/laravel-web-logs/main/screenshot.png?raw=true)](https://raw.githubusercontent.com/mojtabaahn/laravel-web-logs/main/screenshot.png?raw=true)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require mojtabaahn/laravel-web-logs
```

Now publish package assets using this command:

```
php artisan vendor:publish --tag="web-logs-assets"
```

Optionally, you can publish the config file of the package.

```
php artisan vendor:publish --provider="Mojtabaahn\LaravelWebLogs\Providers\LaravelWebLogsServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

Visit the `web-logs/` route use the package. You can change this in the config file.

Configuration
-------------

[](#configuration)

This is the contents of the published config file:

```
use Mojtabaahn\LaravelWebLogs\Http\Middlewares\Authorize;

return [

    /*
    |--------------------------------------------------------------------------
    | Dashboard Enabled
    |--------------------------------------------------------------------------
    |
    | Here you may specify either dashboard is enabled or not
    |
    */

    'enabled' => env('WEB_LOGS_ENABLED', true),

    /*
    |--------------------------------------------------------------------------
    | Route Group Attributes
    |--------------------------------------------------------------------------
    |
    | This is the array configuring package route attributes. feel free
    | to edit route prefixes, middlewares and anything else.
    |
    | In case you want to add authorization using default auth driver,
    | uncomment web middleware.
    |
    */

    'route_group_attributes' => [
        'prefix' => env('WEB_LOGS_PATH', 'web-logs'),
        'middleware' => [
            // 'web',
            Authorize::class,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Chunk Size
    |--------------------------------------------------------------------------
    |
    | On each request from dashboard to it's back-end how many logs should
    | it read of specified log file. Setting this option to a big number
    | may reduce dashboard performance!
    |
    */

    'chunk_size' => env('WEB_LOGS_CHUNK_SIZE', 10),

    /*
    |--------------------------------------------------------------------------
    | Search Path
    |--------------------------------------------------------------------------
    |
    | Use this property to customize logs directory where package should
    | look for log files.
    |
    */

    'search_path' => storage_path('logs'),
];
```

Authorization
-------------

[](#authorization)

Web Logs is enabled by default for all users and guests. In case you want to authorize users before accessing it you must register a `viewWebLogs` ability. A good place to do this is in the `AuthServiceProvider` that ships with Laravel.

```
public function boot()
{
    $this->registerPolicies();

    Gate::define('viewWebLogs', function ($user = null) {
        // return true if access to web logs is allowed
    });
}
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 86.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Recently: every ~26 days

Total

31

Last Release

1446d ago

Major Versions

v1.x-dev → 2.0.02022-05-26

PHP version history (4 changes)1.0.0PHP ^7.3|^8.0

1.0.2PHP ^8.0

1.0.4PHP 8.0|^7.4

1.0.11PHP ^8.0|^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/503256c6913ef8f8cbb2934a1f18d2cdce48818b536c0cb730dbf126c11ce4bc?d=identicon)[mojtabaahn](/maintainers/mojtabaahn)

---

Top Contributors

[![mojtabaahn](https://avatars.githubusercontent.com/u/9845317?v=4)](https://github.com/mojtabaahn "mojtabaahn (19 commits)")[![yoeriboven](https://avatars.githubusercontent.com/u/4047804?v=4)](https://github.com/yoeriboven "yoeriboven (2 commits)")[![Oxicode](https://avatars.githubusercontent.com/u/1320709?v=4)](https://github.com/Oxicode "Oxicode (1 commits)")

---

Tags

debugging-toolsdevdev-toolsdeveloper-toolslaravellumenphpvueweb

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mojtabaahn-laravel-web-logs/health.svg)

```
[![Health](https://phpackages.com/badges/mojtabaahn-laravel-web-logs/health.svg)](https://phpackages.com/packages/mojtabaahn-laravel-web-logs)
```

###  Alternatives

[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[masterro/laravel-mail-viewer

Easily view in browser outgoing emails.

6392.1k](/packages/masterro-laravel-mail-viewer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
