{"id":22467899,"url":"https://github.com/pmochine/laravel-report","last_synced_at":"2025-10-29T18:05:02.343Z","repository":{"id":53099272,"uuid":"179068115","full_name":"pmochine/Laravel-Report","owner":"pmochine","description":"✅Get feedback from your users by allowing them to report stuff","archived":false,"fork":false,"pushed_at":"2021-04-06T20:43:23.000Z","size":46,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-26T14:40:51.298Z","etag":null,"topics":["feedback","judge","laravel","report","reportable"],"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/pmochine.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":"2019-04-02T11:58:43.000Z","updated_at":"2021-02-21T13:04:51.000Z","dependencies_parsed_at":"2022-08-24T01:21:04.980Z","dependency_job_id":null,"html_url":"https://github.com/pmochine/Laravel-Report","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/pmochine/Laravel-Report","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmochine%2FLaravel-Report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmochine%2FLaravel-Report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmochine%2FLaravel-Report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmochine%2FLaravel-Report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmochine","download_url":"https://codeload.github.com/pmochine/Laravel-Report/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmochine%2FLaravel-Report/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268355683,"owners_count":24237367,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["feedback","judge","laravel","report","reportable"],"created_at":"2024-12-06T11:14:05.948Z","updated_at":"2025-10-29T18:05:02.256Z","avatar_url":"https://github.com/pmochine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Report 📢\n\n[![PHP from Packagist](https://img.shields.io/packagist/php-v/pmochine/laravel-report.svg?style=flat-square)]()\n[![Latest Version](https://img.shields.io/github/release/pmochine/Laravel-Report.svg?style=flat-square)](https://github.com/pmochine/Laravel-Report/releases)\n\n## Installation\n\nRequire this package, with [Composer](https://getcomposer.org/), in the root directory of your project.\n\n``` bash\n$ composer require pmochine/laravel-report\n```\n\nTo get started, you'll need to publish the vendor assets and migrate:\n\n```\nphp artisan vendor:publish --provider=\"Pmochine\\Report\\ReportServiceProvider\" \u0026\u0026 php artisan migrate\n```\n\n## Usage\n\n## Setup a Model\n``` php\n\u003c?php\n\nnamespace App;\n\nuse Pmochine\\Report\\Traits\\HasReports;\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Post extends Model\n{\n    use HasReports;\n}\n```\n\n## Examples\n\n#### The User Model reports the Post Model\n``` php\n$post-\u003ereport([\n    'reason' =\u003e \\Str::random(10),\n    'meta' =\u003e ['some more optional data, can be notes or something'],\n], $user);\n```\n\n#### Create a conclusion for a Report and add the User Model as \"judge\" (useful to later see who or what came to this conclusion)\n``` php\n$report-\u003econclude([\n    'conclusion' =\u003e 'Your report was valid. Thanks! We\\'ve taken action and removed the entry.',\n    'action_taken' =\u003e 'Record has been deleted.' // This is optional but can be useful to see what happend to the record\n    'meta' =\u003e ['some more optional data, can be notes or something'],\n], $user);\n```\n\n#### Get the conclusion for the Report Model\n``` php\n$report-\u003econclusion;\n```\n\n#### Get the judge for the Report Model (only available if there is a conclusion)\n``` php\n$report-\u003ejudge(); // Just a shortcut for $report-\u003econclusion-\u003ejudge\n```\n\n#### Get an array with all Judges that have ever \"judged\" something\n``` php\nReport::allJudges();\n```\n\n## Testing\n\n``` bash\n$ phpunit\n```\n\n## Security\n\nIf you discover any security related issues, please don't email me. I'm afraid 😱. avidofood@protonmail.com\n\n## Credits\n\nNow comes the best part! 😍\nThis package is based on\n\n- [Brian Faust's Laravel-Reportable](https://github.com/faustbrian/Laravel-Reportable)\n- [All Contributors](../../contributors)\n\n## License\n\n[MIT](LICENSE) © [Brian Faust](https://brianfaust.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmochine%2Flaravel-report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmochine%2Flaravel-report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmochine%2Flaravel-report/lists"}