PHPackages                             asseco-voice/laravel-blueprint-audit - 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. [Database &amp; ORM](/categories/database)
4. /
5. asseco-voice/laravel-blueprint-audit

ActiveLibrary[Database &amp; ORM](/categories/database)

asseco-voice/laravel-blueprint-audit
====================================

Laravel support for additional blueprint methods

v2.0.0(2y ago)06.6k↑130.8%3[5 PRs](https://github.com/asseco-voice/laravel-blueprint-audit/pulls)1MITPHPPHP ^8.1

Since Aug 6Pushed 1y ago5 watchersCompare

[ Source](https://github.com/asseco-voice/laravel-blueprint-audit)[ Packagist](https://packagist.org/packages/asseco-voice/laravel-blueprint-audit)[ RSS](/packages/asseco-voice-laravel-blueprint-audit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (14)Used By (1)

[![](https://github.com/asseco-voice/art/raw/main/evil_logo.png)](https://see.asseco.com)

Blueprint audit
===============

[](#blueprint-audit)

Purpose of this repository is to provide additional methods for migrations.

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

[](#installation)

Require the package with `composer require asseco-voice/laravel-blueprint-audit`. Service provider will be registered automatically.

Usage
-----

[](#usage)

Call `$table->audit()` within your migration to get these attributes:

```
$this->timestamp('created_at')->nullable();
$this->string('created_by')->nullable();
$this->string('creator_type')->nullable();

$this->timestamp('updated_at')->nullable();
$this->string('updated_by')->nullable();
$this->string('updater_type')->nullable();
```

or call `$table->softDeleteAudit()` to additionally get also:

```
$this->timestamp('deleted_at')->nullable();
$this->string('deleted_by')->nullable();
$this->string('deleter_type')->nullable();
```

If you're using first one, add `Audit` trait on your model, and for second one add `SoftDeleteAudit` trait to enable these attributes being populated automatically.

`_type` field is there to support if you have more than one type of entities which can perform actions on resources (i.e. `service` or `user`).

You can modify how the IDs and types are being extracted by publishing the config with `php artisan vendor:publish --tag=asseco-blueprint-audit` and implementing your own extractor class. Be sure your extended class implements `Extractor`interface.

### Runtime picker

[](#runtime-picker)

There is a helper class which will enable you to pick timestamp types during runtime. So what you can do is define a config key which will be forwarded within a migration and will choose which migrations type to run.

Example, having the following migration:

```
public function up()
{
    Schema::create('matches', function (Blueprint $table) {
        // ...
        // some fields
        // ...

        MigrationMethodPicker::pick($table, config('your-config.timestamps'));
    });
}
```

Config value being one of the `MigrationMethodPicker` types i.e. `'soft'` will evaluate your migration to:

```
public function up()
{
    Schema::create('matches', function (Blueprint $table) {
        // ...
        // some fields
        // ...

        $table->timestamps();
        $table->softDeletes();
    });
}
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~122 days

Recently: every ~182 days

Total

7

Last Release

1009d ago

Major Versions

v0.2.1 → v1.0.02022-04-26

v1.1.0 → v2.0.02023-08-07

PHP version history (3 changes)v0.1.0PHP ^7.4 || ^8.0

v1.0.0PHP ^8.0

v2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/d61de45741b74e7d4a9ee5778160cf54ae5e94a615ae1a6f72b6d1e5fae68d12?d=identicon)[Norgul](/maintainers/Norgul)

---

Top Contributors

[![AkronimBlack](https://avatars.githubusercontent.com/u/39061674?v=4)](https://github.com/AkronimBlack "AkronimBlack (2 commits)")[![josip-milotic](https://avatars.githubusercontent.com/u/42002911?v=4)](https://github.com/josip-milotic "josip-milotic (2 commits)")[![Norgul](https://avatars.githubusercontent.com/u/11718157?v=4)](https://github.com/Norgul "Norgul (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")

---

Tags

phplaraveldatabasemicroservices

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/asseco-voice-laravel-blueprint-audit/health.svg)

```
[![Health](https://phpackages.com/badges/asseco-voice-laravel-blueprint-audit/health.svg)](https://phpackages.com/packages/asseco-voice-laravel-blueprint-audit)
```

###  Alternatives

[wayofdev/laravel-cycle-orm-adapter

🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

3516.7k3](/packages/wayofdev-laravel-cycle-orm-adapter)[codewithkyrian/chromadb-laravel

ChromaDB Laravel is a Laravel client for the Chroma Open Source Embedding Database

144.1k](/packages/codewithkyrian-chromadb-laravel)

PHPackages © 2026

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