{"id":33962863,"url":"https://github.com/hasnularief/auditor","last_synced_at":"2026-04-08T15:31:11.024Z","repository":{"id":62514973,"uuid":"116581896","full_name":"hasnularief/auditor","owner":"hasnularief","description":"Audit or log your laravel model","archived":false,"fork":false,"pushed_at":"2018-11-20T12:52:08.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-14T10:51:29.860Z","etag":null,"topics":["auditor","laravel-5-package"],"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/hasnularief.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-07T16:42:15.000Z","updated_at":"2018-11-20T12:53:05.000Z","dependencies_parsed_at":"2022-11-02T13:16:00.181Z","dependency_job_id":null,"html_url":"https://github.com/hasnularief/auditor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hasnularief/auditor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasnularief%2Fauditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasnularief%2Fauditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasnularief%2Fauditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasnularief%2Fauditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasnularief","download_url":"https://codeload.github.com/hasnularief/auditor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasnularief%2Fauditor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31562685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["auditor","laravel-5-package"],"created_at":"2025-12-12T22:15:02.891Z","updated_at":"2026-04-08T15:31:11.015Z","avatar_url":"https://github.com/hasnularief.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auditor for Laravel\n\n## Installation\n\nRequire this package with composer:\n\n```shell\ncomposer require hasnularief/auditor:dev-master\n```\n\nAdd packages to autoload and add ServiceProvider to config\\app.php\n\n```php\nHasnularief\\Auditor\\AuditorServiceProvider::class,\n```\n\nCopy the package config to your local config with the publish command:\n\n```shell\nphp artisan vendor:publish --tag=auditor\n```\n\nAuditor will be enabled when `AUDITOR` is `true` in .env\n\n## How to use\n\nAdd AuditorTrait to your model and auditor will audit your model when you write data\n```php\nuse Hasnularief\\Auditor\\AuditorTrait;\n\nclass User extends Model\n{\n    use AuditorTrait;\n```\n\nAuditor using observer to observe your model. If your model already have observer in boot method, you can't use the first method, but you can include observer directly in model.\n\n```php\nuse Hasnularief\\Auditor\\AuditorObserver;\n\nclass User extends Model\n{\n    protected static function boot()\n    {\n        parent::boot();\n        $request = request();\n        static::observe(new AuditorObserver($request));\n    }\n```\n\nFinally you can access the result in route `your-project.dev/auditor`\n\nFor other configuration you can see in `config/auditor.php`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasnularief%2Fauditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasnularief%2Fauditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasnularief%2Fauditor/lists"}