{"repo":"yajra/laravel-auditable","free":true,"listed":false,"github":"https://github.com/yajra/laravel-auditable","clone":"git clone https://github.com/yajra/laravel-auditable.git","description":"Basic Auditable package for Eloquent Model.","language":"PHP","stars":176,"topics":["laravel","php","audit-log","eloquent","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel Auditable [![Latest Version on Packagist][ico-version]][link-packagist] [![Software License][ico-license]](LICENSE.md) [![Total Downloads][ico-downloads]][link-downloads] Laravel Auditable is a simple Laravel auditing package for your Eloquent Model. This package automatically inserts/updates an audit log on your table on who created and last updated the record. Laravel Version Compatibility Laravel Package :--------- :-------- 5.x-10.x 4.x 11.x 11.x 12.x 12.x 13.x 13.x Install via Composer Publish config file If you want to modify the withDefault option on auditable columns, you may publish the config file. Usage Update your model's migration and add created by and updated by field using the auditable() blueprint macro. Then use AuditableTrait on your model. Soft Deletes If you wish to use Laravel's soft deletes, use the auditableWithDeletes() method on your migration instead: Afterwards, you need to use AuditableWithDeletesTrait on your model. Dropping columns You can drop auditable columns using dropAuditable() method, or dropAuditableWithDeletes() if using soft deletes. And you're done! The package will now automatically add a basic audit log for your model to track who inserted and last updated your records. Change log Please see CHANGELOG for more information what has changed recently. Testing Contributing Please see CONTRIBUTING and CONDUCT for details. Security If you discover any security related issues, please email aqangeles@gmail.com instead of using the i","default_branch":null,"files":null,"tree":[],"storefront":"/r/yajra","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yajra/laravel-auditable/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}