{"id":37231825,"url":"https://github.com/mojtabaahn/laravel-web-logs","last_synced_at":"2026-01-15T03:46:04.196Z","repository":{"id":39740855,"uuid":"367353760","full_name":"mojtabaahn/laravel-web-logs","owner":"mojtabaahn","description":"View Laravel File-Based Logs In Web","archived":true,"fork":false,"pushed_at":"2022-06-08T20:40:26.000Z","size":5326,"stargazers_count":158,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T21:40:48.735Z","etag":null,"topics":["debugging-tools","dev","dev-tools","developer-tools","laravel","lumen","php","vue","web"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mojtabaahn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-14T12:21:00.000Z","updated_at":"2025-09-16T18:41:52.000Z","dependencies_parsed_at":"2022-08-22T20:20:20.151Z","dependency_job_id":null,"html_url":"https://github.com/mojtabaahn/laravel-web-logs","commit_stats":null,"previous_names":["jsqtalent/laravel-web-logs","mojtabaahn/laravel-web-logs"],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/mojtabaahn/laravel-web-logs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojtabaahn%2Flaravel-web-logs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojtabaahn%2Flaravel-web-logs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojtabaahn%2Flaravel-web-logs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojtabaahn%2Flaravel-web-logs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mojtabaahn","download_url":"https://codeload.github.com/mojtabaahn/laravel-web-logs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojtabaahn%2Flaravel-web-logs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:25:19.714Z","status":"ssl_error","status_checked_at":"2026-01-14T10:22:49.371Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debugging-tools","dev","dev-tools","developer-tools","laravel","lumen","php","vue","web"],"created_at":"2026-01-15T03:46:03.564Z","updated_at":"2026-01-15T03:46:04.183Z","avatar_url":"https://github.com/mojtabaahn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Banner](https://github.com/mojtabaahn/laravel-web-logs/blob/main/banner.jpeg?raw=true)\n\n# View Laravel/Lumen logs in browser.\n\n![Packagist License](https://img.shields.io/packagist/l/mojtabaahn/laravel-web-logs?style=for-the-badge)\n![Packagist Version](https://img.shields.io/packagist/v/mojtabaahn/laravel-web-logs?style=for-the-badge)\n![GitHub repo size](https://img.shields.io/github/repo-size/mojtabaahn/laravel-web-logs?style=for-the-badge)\n![Packagist Downloads](https://img.shields.io/packagist/dt/mojtabaahn/laravel-web-logs?style=for-the-badge)\n\n## Disclaimer\nThis package is simply a lightweight web interface for Laravel and Lumen file-based logs.\nIf 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/)\nAnd if you need an error tracking software consider trying [Sentry](https://sentry.io/) and [Bugsnag](https://www.bugsnag.com/).\n\n## Screen Shot\n![screen shot](https://raw.githubusercontent.com/mojtabaahn/laravel-web-logs/main/screenshot.png?raw=true)\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require mojtabaahn/laravel-web-logs\n```\n\nNow publish package assets using this command:\n\n```bash\nphp artisan vendor:publish --tag=\"web-logs-assets\"\n```\n\nOptionally, you can publish the config file of the package.\n```bash\nphp artisan vendor:publish --provider=\"Mojtabaahn\\LaravelWebLogs\\Providers\\LaravelWebLogsServiceProvider\" --tag=\"config\"\n```\n\n## Usage\nVisit the `web-logs/` route use the package. You can change this in the config file.\n\n## Configuration\nThis is the contents of the published config file:\n\n```php\nuse Mojtabaahn\\LaravelWebLogs\\Http\\Middlewares\\Authorize;\n\nreturn [\n\n    /*\n    |--------------------------------------------------------------------------\n    | Dashboard Enabled\n    |--------------------------------------------------------------------------\n    |\n    | Here you may specify either dashboard is enabled or not\n    |\n    */\n\n    'enabled' =\u003e env('WEB_LOGS_ENABLED', true),\n\n    /*\n    |--------------------------------------------------------------------------\n    | Route Group Attributes\n    |--------------------------------------------------------------------------\n    |\n    | This is the array configuring package route attributes. feel free\n    | to edit route prefixes, middlewares and anything else.\n    |\n    | In case you want to add authorization using default auth driver,\n    | uncomment web middleware.\n    |\n    */\n\n    'route_group_attributes' =\u003e [\n        'prefix' =\u003e env('WEB_LOGS_PATH', 'web-logs'),\n        'middleware' =\u003e [\n            // 'web',\n            Authorize::class,\n        ],\n    ],\n\n    /*\n    |--------------------------------------------------------------------------\n    | Chunk Size\n    |--------------------------------------------------------------------------\n    |\n    | On each request from dashboard to it's back-end how many logs should\n    | it read of specified log file. Setting this option to a big number\n    | may reduce dashboard performance!\n    |\n    */\n\n    'chunk_size' =\u003e env('WEB_LOGS_CHUNK_SIZE', 10),\n\n    /*\n    |--------------------------------------------------------------------------\n    | Search Path\n    |--------------------------------------------------------------------------\n    |\n    | Use this property to customize logs directory where package should\n    | look for log files.\n    |\n    */\n\n    'search_path' =\u003e storage_path('logs'),\n];\n```\n\n## Authorization\n\nWeb 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.\n\n```php\npublic function boot()\n{\n    $this-\u003eregisterPolicies();\n\n    Gate::define('viewWebLogs', function ($user = null) {\n        // return true if access to web logs is allowed\n    });\n}\n```\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojtabaahn%2Flaravel-web-logs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmojtabaahn%2Flaravel-web-logs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojtabaahn%2Flaravel-web-logs/lists"}