{"id":13733102,"url":"https://github.com/saade/filament-laravel-log","last_synced_at":"2025-05-15T23:03:23.816Z","repository":{"id":37384027,"uuid":"471219590","full_name":"saade/filament-laravel-log","owner":"saade","description":"Read Laravel logs from the Filament admin panel","archived":false,"fork":false,"pushed_at":"2025-03-19T17:13:59.000Z","size":2408,"stargazers_count":107,"open_issues_count":8,"forks_count":28,"subscribers_count":2,"default_branch":"3.x","last_synced_at":"2025-05-15T23:02:32.514Z","etag":null,"topics":["filament","laravel","log","log-viewer","resource"],"latest_commit_sha":null,"homepage":"https://filamentphp.com/plugins/saade-laravel-log","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/saade.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["saade"]}},"created_at":"2022-03-18T03:09:11.000Z","updated_at":"2025-04-09T06:29:24.000Z","dependencies_parsed_at":"2023-02-16T03:01:27.513Z","dependency_job_id":"9f4f2435-4957-4400-b968-1bac82b2802a","html_url":"https://github.com/saade/filament-laravel-log","commit_stats":{"total_commits":32,"total_committers":6,"mean_commits":5.333333333333333,"dds":0.625,"last_synced_commit":"0d7ceb2cfffe8284d53b83cab604ac192fe7ce7d"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saade%2Ffilament-laravel-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saade%2Ffilament-laravel-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saade%2Ffilament-laravel-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saade%2Ffilament-laravel-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saade","download_url":"https://codeload.github.com/saade/filament-laravel-log/tar.gz/refs/heads/3.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254436944,"owners_count":22070946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["filament","laravel","log","log-viewer","resource"],"created_at":"2024-08-03T03:00:37.703Z","updated_at":"2025-05-15T23:03:23.761Z","avatar_url":"https://github.com/saade.png","language":"PHP","funding_links":["https://github.com/sponsors/saade"],"categories":["Plugins","Logging"],"sub_categories":["Administration \u0026 Management"],"readme":"# Filament Laravel Log\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/saade/filament-laravel-log.svg?style=flat-square)](https://packagist.org/packages/saade/filament-laravel-log)\n[![Total Downloads](https://img.shields.io/packagist/dt/saade/filament-laravel-log.svg?style=flat-square)](https://packagist.org/packages/saade/filament-laravel-log)\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/saade/filament-laravel-log/3.x/art/cover1.png\" alt=\"Banner\" style=\"width: 100%; max-width: 800px; border-radius: 10px\" /\u003e\n\u003c/p\u003e\n\n# Features\n\n- Syntax highlighting\n- Light/ Dark mode\n- Quickly jump between start and end of the file\n- Refresh log contents\n- Clear log contents\n- Search multiple files in multiple directories\n- Ignored file patterns\n\n\u003cbr\u003e\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require saade/filament-laravel-log:^3.0\n```\n\n## Usage\n\nAdd the `Saade\\FilamentLaravelLog\\FilamentLaravelLogPlugin` to your panel config.\n\n```php\nuse Saade\\FilamentLaravelLog\\FilamentLaravelLogPlugin;\n\nclass AdminPanelProvider extends PanelProvider\n{\n    public function panel(Panel $panel): Panel\n    {\n        return $panel\n            // ...\n            -\u003eplugin(\n                FilamentLaravelLogPlugin::make()\n            );\n    }\n}\n```\n\n## Configuration\n\n### Customizing the navigation item\n\n```php\nFilamentLaravelLogPlugin::make()\n    -\u003enavigationGroup('System Tools')\n    -\u003enavigationLabel('Logs')\n    -\u003enavigationIcon('heroicon-o-bug-ant')\n    -\u003enavigationSort(1)\n    -\u003eslug('logs')\n```\n\n### Customizing the log search\n\n```php\nFilamentLaravelLogPlugin::make()\n  -\u003elogDirs([\n      storage_path('logs'),     // The default value\n  ])\n  -\u003eexcludedFilesPatterns([\n      '*2023*'\n  ])\n```\n\n### Authorization\nIf you would like to prevent certain users from accessing the logs page, you should add a `authorize` callback in the FilamentLaravelLogPlugin chain.\n\n```php\nFilamentLaravelLogPlugin::make()\n  -\u003eauthorize(\n      fn () =\u003e auth()-\u003euser()-\u003eisAdmin()\n  )\n```\n\n### Customizing the log page\n\nTo customize the log page, you can extend the `Saade\\FilamentLaravelLog\\Pages\\ViewLog` page and override its methods.\n    \n```php\nuse Saade\\FilamentLaravelLog\\Pages\\ViewLog as BaseViewLog;\n\nclass ViewLog extends BaseViewLog\n{\n    // Your implementation\n}\n```\n\n```php\nuse App\\Filament\\Pages\\ViewLog;\n\nFilamentLaravelLogPlugin::make()\n  -\u003eviewLog(ViewLog::class)\n```\n\n\n### Customizing the editor appearance\n\nPublish the config file:\n\n```bash\nphp artisan vendor:publish --tag=\"log-config\"\n```\n\nThis is the contents of the published config file:\n\n```php\n\u003c?php\n\nreturn [\n    /**\n     * Maximum amount of lines that editor will render.\n     */\n    'maxLines' =\u003e 50,\n\n    /**\n     * Minimum amount of lines that editor will render.\n     */\n    'minLines' =\u003e 10,\n\n    /**\n     * Editor font size.\n     */\n    'fontSize' =\u003e 12\n];\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Saade](https://github.com/saade)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/sponsors/saade\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/saade/filament-laravel-log/3.x/art/sponsor.png\" alt=\"Sponsor Saade\" style=\"width: 100%; max-width: 800px;\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaade%2Ffilament-laravel-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaade%2Ffilament-laravel-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaade%2Ffilament-laravel-log/lists"}