dskripchenko/orchid-loggable

Change logs for orchid platform.

Maintainers

Package info

github.com/dskripchenko/orchid-loggable

pkg:composer/dskripchenko/orchid-loggable

Transparency log

Statistics

Installs: 1 064

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.2.1 2026-07-21 06:46 UTC

This package is auto-updated.

Last update: 2026-07-28 16:47:29 UTC


README

Change-log / audit trail for Orchid platform models. Records create / update / delete changes and ships Orchid screens to browse them.

Packagist License

Requirements

PHP 8.2–8.5 · Laravel 11 / 12 / 13 · Orchid Platform 14 · dskripchenko/orchid-extra ^2.2.

Install

composer require dskripchenko/orchid-loggable
php artisan migrate

The service provider is auto-discovered and registers the change-log screens in your Orchid dashboard.

Usage

Make a model auditable by implementing LoggableEntity and attaching ChangeLogObserver:

use Dskripchenko\OrchidLoggable\Contracts\LoggableEntity;
use Dskripchenko\OrchidLoggable\Observers\ChangeLogObserver;
use Illuminate\Database\Eloquent\Model;

class Article extends Model implements LoggableEntity
{
    // How each change-log entry is labelled…
    public function getLoggableTitle(): string
    {
        return $this->title;
    }

    // …and where it links back to.
    public function getLoggableUrl(): string
    {
        return route('platform.articles.edit', $this);
    }

    protected static function booted(): void
    {
        static::observe(ChangeLogObserver::class);
    }
}

Changes are stored as ChangeLog records and viewable through the package's Orchid list / view screens. getLoggableTitle() / getLoggableUrl() control how each entry is titled and linked in that UI.

License

MIT © Denis Skripchenko