{"id":15634175,"url":"https://github.com/pxlrbt/filament-activity-log","last_synced_at":"2025-05-15T08:09:36.152Z","repository":{"id":168245073,"uuid":"643908830","full_name":"pxlrbt/filament-activity-log","owner":"pxlrbt","description":"Spatie activity log integration into Filament","archived":false,"fork":false,"pushed_at":"2025-02-02T05:26:05.000Z","size":442,"stargazers_count":173,"open_issues_count":9,"forks_count":28,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-07T04:04:48.777Z","etag":null,"topics":["filamentadmin","filamentphp","laravel"],"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/pxlrbt.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"pxlrbt"}},"created_at":"2023-05-22T12:07:46.000Z","updated_at":"2025-04-06T22:38:46.000Z","dependencies_parsed_at":"2024-12-14T12:01:44.169Z","dependency_job_id":"b4fc614e-ea9a-47e5-ba68-a99eb07a3659","html_url":"https://github.com/pxlrbt/filament-activity-log","commit_stats":{"total_commits":73,"total_committers":23,"mean_commits":"3.1739130434782608","dds":0.5342465753424658,"last_synced_commit":"1433f60137e722c1384b932e56f42e4666105cbe"},"previous_names":["pxlrbt/filament-activity-log"],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxlrbt%2Ffilament-activity-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxlrbt%2Ffilament-activity-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxlrbt%2Ffilament-activity-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxlrbt%2Ffilament-activity-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pxlrbt","download_url":"https://codeload.github.com/pxlrbt/filament-activity-log/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248890078,"owners_count":21178359,"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":["filamentadmin","filamentphp","laravel"],"created_at":"2024-10-03T10:51:43.091Z","updated_at":"2025-04-14T13:42:35.060Z","avatar_url":"https://github.com/pxlrbt.png","language":"PHP","funding_links":["https://github.com/sponsors/pxlrbt"],"categories":["Plugins"],"sub_categories":["Administration \u0026 Management"],"readme":"\u003cdiv class=\"filament-hidden\"\u003e\n\n![header](./.github/resources/pxlrbt-activity-log.png)\n    \n\u003c/div\u003e\n\n# Filament Activity Log\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/pxlrbt/filament-activity-log.svg?include_prereleases)](https://packagist.org/packages/pxlrbt/filament-activity-log)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/pxlrbt/filament-activity-log/code-style.yml?branch=main\u0026label=Code%20style\u0026style=flat-square)\n[![Total Downloads](https://img.shields.io/packagist/dt/pxlrbt/filament-activity-log.svg)](https://packagist.org/packages/pxlrbt/filament-activity-log)\n\n\nThis package adds a page to the Filament Admin panel to view the activity log generated by [`spatie/laravel-activitylog`](https://github.com/spatie/laravel-activitylog).\n\n\u003cdiv class=\"filament-hidden\"\u003e\n    \n![Screenshot](./.github/resources/screenshot.png)\n\n\u003c/div\u003e\n\n## Installation\n\n| Plugin Version | Filament Version | PHP Version |\n|----------------|-----------------|-------------|\n| 0.1.x            | 2.x   | \\\u003e 8.0      |\n| 1.x            | 3.x             | \\\u003e 8.1      |\n\nInstall via Composer.\n\n**Requires PHP 8.0 and Filament 2.0**\n\n```bash\ncomposer require pxlrbt/filament-activity-log\n```\n\n\u003e **Warning**\n\u003e This plugin only offers a page to show activities related to your model. You need [`spatie/laravel-activitylog`](https://github.com/spatie/laravel-activitylog) installed and configured for it to work. It is important you are using the `LogsActivity` trait as per [Spatie's docs](https://spatie.be/docs/laravel-activitylog/v4/advanced-usage/logging-model-events) for this work as we use the '-\u003eactivities()' method of the trait.\n\n## Usage\n\nMake sure you use a **custom theme** and the vendor folder for this plugins is published, so that it includes the Tailwind CSS classes.\n\n### Create a page\n\nCreate the page inside your resources `Pages/` directory. Replace `UserResource` with your resource. \n\n```php\n\u003c?php\n\nnamespace App\\Filament\\Resources\\UserResource\\Pages;\n\nuse pxlrbt\\FilamentActivityLog\\Pages\\ListActivities;\n\nclass ListUserActivities extends ListActivities\n{\n    protected static string $resource = UserResource::class;\n}\n```\n\n### Register the page\n\nAdd the page to your resource's `getPages()` method.\n\n```php\npublic static function getPages(): array\n{\n    return [\n        'index' =\u003e Pages\\ListUsers::route('/'),\n        'create' =\u003e Pages\\CreateUser::route('/create'),\n        'activities' =\u003e Pages\\ListUserActivities::route('/{record}/activities'),\n        'edit' =\u003e Pages\\EditUser::route('/{record}/edit'),\n    ];\n}\n```\n\n### Link to your page\n\nUse a Filament action to link to your from your table or page.\n\n```php\n$table-\u003eactions([\n    Action::make('activities')-\u003eurl(fn ($record) =\u003e YourResource::getUrl('activities', ['record' =\u003e $record]))\n]);\n```\n\n## Contributing\n\nIf you want to contribute to this packages, you may want to test it in a real Filament project:\n\n- Fork this repository to your GitHub account.\n- Create a Filament app locally.\n- Clone your fork in your Filament app's root directory.\n- In the `/filament-activity-log` directory, create a branch for your fix, e.g. `fix/error-message`.\n\nInstall the packages in your app's `composer.json`:\n\n```json\n\"require\": {\n    \"pxlrbt/filament-activity-log\": \"dev-fix/error-message as main-dev\",\n},\n\"repositories\": [\n    {\n        \"type\": \"path\",\n        \"url\": \"filament-activity-log\"\n    }\n]\n```\n\nNow, run `composer update`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpxlrbt%2Ffilament-activity-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpxlrbt%2Ffilament-activity-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpxlrbt%2Ffilament-activity-log/lists"}