PHPackages                             syberisle/laravel-scribe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. syberisle/laravel-scribe

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

syberisle/laravel-scribe
========================

Tool for adding logging to models

0.0.2(2y ago)07MITPHPPHP ^8.0CI passing

Since Feb 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/SyberIsle/laravel-scribe)[ Packagist](https://packagist.org/packages/syberisle/laravel-scribe)[ Docs](https://github.com/syberisle/laravel-scribe)[ RSS](/packages/syberisle-laravel-scribe/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (7)Versions (5)Used By (0)

Non-Audit logs for your Laravel models
======================================

[](#non-audit-logs-for-your-laravel-models)

[![Latest Version on Packagist](https://camo.githubusercontent.com/60a7faa6309e30174b53b6e639deb92baaea564473f108c81c521777eece2a3a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737962657269736c652f6c61726176656c2d7363726962652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/syberisle/laravel-scribe)[![GitHub Workflow Status](https://camo.githubusercontent.com/d461f8fba730e3cf4b14da23e38f7ddbe98c3abeb88b38ee9020e5e1272b1857/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f737962657269736c652f6c61726176656c2d7363726962652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)](https://github.com/syberisle/laravel-scribe/actions/workflows/tests.yml)[![Total Downloads](https://camo.githubusercontent.com/e3e54fcad4740814661f75dbc19e74a548e872f5fd9c0e0c75e94047c46efc15/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737962657269736c652f6c61726176656c2d7363726962652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/syberisle/laravel-scribe)

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](https://github.com/spatie/laravel-activitylog) or [owen-it/auditable](https://github.com/owen-it/laravel-auditing) as they are better suited for an audit log.

You can use it like this:

```
SomeModel::find(1)->log('hi there');

// retrieving model logs
SomeModel::find(1)->logs();
// or
SomeModelLogs::all();
```

Installation
------------

[](#installation)

```
composer install syberisle/laravel-scribe
```

You can then create log models for your existing models:

```
php artisan make:scribe:model 'App\Models\SomeModel'
```

*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.

```
use SyberIsle\Laravel\Scribe\Model\HasLogs;

class MyModel
{
    use HasLogs;

    protected $logModel = MyModelLog::class
    ...
}
```

### UUID support

[](#uuid-support)

UUID's are supported for the migrations:

- `--uuid` will cause the migration &amp; generated Log class to use UUID's via the `HasUuids` trait
- `--causer-uuid` will cause the migration to utilize UUID's when creating the `causer` columns
- The subject ID will be auto-detected by the Model generator, and will apply UUID's if necessary to the `subject_id`

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information about recent changes.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you've found a bug regarding security please report it via the security tab of this repository.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

2

Last Release

860d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5eb9bc1606754fee81247bf5d4a6a4d7fb7cce1b3769de69a345c5c8e120211e?d=identicon)[dlundgren](/maintainers/dlundgren)

---

Top Contributors

[![dlundgren](https://avatars.githubusercontent.com/u/1322393?v=4)](https://github.com/dlundgren "dlundgren (8 commits)")

---

Tags

logging

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/syberisle-laravel-scribe/health.svg)

```
[![Health](https://phpackages.com/badges/syberisle-laravel-scribe/health.svg)](https://phpackages.com/packages/syberisle-laravel-scribe)
```

###  Alternatives

[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90336.2M38](/packages/bugsnag-bugsnag-laravel)[illuminate/log

The Illuminate Log package.

6225.3M626](/packages/illuminate-log)[muhammadsadeeq/laravel-activitylog-ui

A beautiful, modern UI for Spatie's Activity Log with advanced filtering, analytics, and real-time features.

17717.0k](/packages/muhammadsadeeq-laravel-activitylog-ui)[bilfeldt/laravel-request-logger

Log Laravel application request and responses for debugging or statistics

123184.2k3](/packages/bilfeldt-laravel-request-logger)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10823.1k](/packages/naoray-laravel-github-monolog)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1395.1k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
