Download the PHP package syberisle/laravel-scribe without Composer
On this page you can find all versions of the php package syberisle/laravel-scribe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download syberisle/laravel-scribe
More information about syberisle/laravel-scribe
Files in syberisle/laravel-scribe
Package laravel-scribe
Short Description Tool for adding logging to models
License MIT
Homepage https://github.com/syberisle/laravel-scribe
Informations about the package laravel-scribe
Non-Audit logs for your Laravel models
An opinionated package that provides easy to use functions to log diagnostic information against the models in your app. These logs are stored in their own tables.
If you are looking for automatic event logging on your models, please look at either spatie/laravel-activitylog or owen-it/auditable as they are better suited for an audit log.
You can use it like this:
Installation
You can then create log models for your existing models:
Note: This automatically creates the migration for the log model, you may specify --no-migration
if you do not want
the migration to be auto-generated.
You will also need to update your model to get the logs()
, and log()
methods.
UUID support
UUID's are supported for the migrations:
--uuid
will cause the migration & generated Log class to use UUID's via theHasUuids
trait--causer-uuid
will cause the migration to utilize UUID's when creating thecauser
columns- The subject ID will be auto-detected by the Model generator, and will apply UUID's if necessary to the
subject_id
Changelog
Please see CHANGELOG for more information about recent changes.
Contributing
Please see CONTRIBUTING for details.
Security
If you've found a bug regarding security please report it via the security tab of this repository.
License
The MIT License (MIT). Please see License File for more information.