{"id":20471390,"url":"https://github.com/bitfumes/laravel-activity-recorder","last_synced_at":"2025-04-13T11:06:58.540Z","repository":{"id":62494588,"uuid":"164456110","full_name":"bitfumes/laravel-activity-recorder","owner":"bitfumes","description":"It records laravel model events in activity table","archived":false,"fork":false,"pushed_at":"2019-10-26T08:11:38.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-09T18:15:54.039Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bitfumes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-07T15:57:07.000Z","updated_at":"2020-11-22T16:52:27.000Z","dependencies_parsed_at":"2022-11-02T11:18:14.752Z","dependency_job_id":null,"html_url":"https://github.com/bitfumes/laravel-activity-recorder","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfumes%2Flaravel-activity-recorder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfumes%2Flaravel-activity-recorder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfumes%2Flaravel-activity-recorder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitfumes%2Flaravel-activity-recorder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitfumes","download_url":"https://codeload.github.com/bitfumes/laravel-activity-recorder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224792473,"owners_count":17370788,"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":[],"created_at":"2024-11-15T14:15:58.269Z","updated_at":"2024-11-15T14:15:59.249Z","avatar_url":"https://github.com/bitfumes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Activity Recorder\n\n## Install\n\n`composer require bitfumes/laravel-activity-recorder`\n\n## Usage\n\nThis package record model events in activities table in your database.\n\n### Using Trait\n\n```php\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Bitfumes\\Activity\\Traits\\RecordActivity;\n\nclass Item extends Model\n{\n    use RecordActivity;\n}\n```\n\n### Activity To Record\n\nIf you does't specify, then it will record only created model event.\n\n_Record other activities_\njust need to specify a static variable in your model to track other model events also.\n\n```php\nclass Item extends Model\n{\n    use RecordActivity;\n\n    protected static $eventsToRecord = ['created','deleted'];\n}\n```\n\nNow this will also going to record `deleted` event of that model.\n\n## Testing\n\nRun the tests with:\n\n```bash\nvendor/bin/phpunit\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security-related issues, please email sarthak@bitfumes.com instead of using the issue tracker.\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%2Fbitfumes%2Flaravel-activity-recorder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitfumes%2Flaravel-activity-recorder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfumes%2Flaravel-activity-recorder/lists"}