PHPackages                             riorizkyrainey/lara-ced - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. riorizkyrainey/lara-ced

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

riorizkyrainey/lara-ced
=======================

This package automatically inserts/updates creator, editor and destroyer on your table.

1.2.1(7y ago)21.6k1MITPHPPHP ^7.0

Since Aug 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/RioRizkyRainey/LaraCed)[ Packagist](https://packagist.org/packages/riorizkyrainey/lara-ced)[ RSS](/packages/riorizkyrainey-lara-ced/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (4)Versions (9)Used By (0)

LaraCed (Laravel Creator-Editor-Destroyer)
==========================================

[](#laraced-laravel-creator-editor-destroyer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/da519f368f93369b42849966b827f6f266a5e7604d9ef4e1cee5a290bc81b3e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f52696f52697a6b795261696e65792f6c6172612d6365642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/RioRizkyRainey/lara-ced)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e1b0b238deff5f859c21c7b0b7065edf5b7562ab7409387e94b91df10000b18f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f52696f52697a6b795261696e65792f4c6172614365642e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/RioRizkyRainey/LaraCed)[![Quality Score](https://camo.githubusercontent.com/5e6d5be1dd5db080414f5b8ac9467cf4ca8e9eb07aede6b5e1156d648a91a973/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f52696f52697a6b795261696e65792f4c6172614365642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/RioRizkyRainey/LaraCed/)[![Total Downloads](https://camo.githubusercontent.com/ae7199e21127a27a32a2e63ab3599cf7df27bda78d0fc5f0a08b5165e65b6af3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f52696f52697a6b795261696e65792f6c6172612d6365642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/RioRizkyRainey/lara-ced)

This package automatically inserts/updates creator, editor and destroyer on your table.

Requirements
------------

[](#requirements)

- This package requires PHP 7.1+
- It works with Laravel 5.5 (and may work with earlier versions too).

Install via Composer
--------------------

[](#install-via-composer)

```
composer require riorizkyrainey/lara-ced
```

Usage
-----

[](#usage)

Update your model's migration and add `created_by`, `updated_by` and `deleted_by` field using the `ced()` blueprint macro.

```
Schema::create('article', function (Blueprint $table) {
    $table->increments('id');
    $table->string('title', 100);
    $table->ced(); //add 'created_by', 'updated_by' and 'deleted_by'
    $table->timestamps();
});
```

or you can add one of the 3 columns.

```
Schema::create('article', function (Blueprint $table) {
    $table->increments('id');
    $table->string('title', 100);
    $table->creator(); // Add created_by
    $table->editor(); // Add updated_by
    $table->destroyer(); // Add deleted_by
    $table->timestamps();
});
```

or with custom column name

```
Schema::create('article', function (Blueprint $table) {
    $table->increments('id');
    $table->string('title', 100);
    $table->creator('seng_gawe'); // Add seng_gawe
    $table->editor('seng_edit'); // Add seng_edit
    $table->destroyer('seng_ndelet'); // Add seng_ndelet
    $table->timestamps();
});
```

Then use `LaraCedTrait` on your model.

```
namespace App;

use LaraCed\LaraCedTrait;

class Article extends Model
{
    use LaraCedTrait;
}
```

The following methods become available on your models to help retrieve the users creating, updating and deleting (if using SoftDeletes).

```
$model -> creator; // the user who created the model
$model -> editor; // the user who last updated the model
$model -> destroyer; // the user who deleted the model
```

If you want to define the `created_by`, `updated_by`, or `deleted_by` column names, add the following class constants to your model(s).

```
const CREATED_BY = 'created_by';
const UPDATED_BY = 'updated_by';
const DELETED_BY = 'deleted_by';
```

Dropping columns
----------------

[](#dropping-columns)

You can drop auditable columns using `dropCed()` method.

```
Schema::table('articles', function (Blueprint $table) {
    $table->dropCed();
});
```

License
-------

[](#license)

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

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

2765d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7441552?v=4)[Rio Rizky Rainey Ferbiansyah](/maintainers/RioRizkyRainey)[@RioRizkyRainey](https://github.com/RioRizkyRainey)

---

Top Contributors

[![RioRizkyRainey](https://avatars.githubusercontent.com/u/7441552?v=4)](https://github.com/RioRizkyRainey "RioRizkyRainey (37 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/riorizkyrainey-lara-ced/health.svg)

```
[![Health](https://phpackages.com/badges/riorizkyrainey-lara-ced/health.svg)](https://phpackages.com/packages/riorizkyrainey-lara-ced)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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