PHPackages                             r4nkt/laravel-manageable - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. r4nkt/laravel-manageable

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

r4nkt/laravel-manageable
========================

Track users who manages models in your Laravel app. (Forked from signifly/laravel-manageable.)

v5.0.0(2y ago)037MITPHPPHP ^8.1

Since Jan 28Pushed 2y agoCompare

[ Source](https://github.com/r4nkt/laravel-manageable)[ Packagist](https://packagist.org/packages/r4nkt/laravel-manageable)[ Docs](https://github.com/r4nkt/laravel-manageable)[ RSS](/packages/r4nkt-laravel-manageable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (19)Used By (0)

Track users who manage models in your Laravel app
=================================================

[](#track-users-who-manage-models-in-your-laravel-app)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6e3a564faf16e4f8737e161de9d84d776a27acfdcbc6232c51af8e6ce2e1c22a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72346e6b742f6c61726176656c2d6d616e61676561626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/r4nkt/laravel-manageable)[![Build Status](https://camo.githubusercontent.com/a349ee131e52cc06b7678a56be3a17f3a99592acd497dc6695596e21a7dcc43b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72346e6b742f6c61726176656c2d6d616e61676561626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/r4nkt/laravel-manageable)[![StyleCI](https://camo.githubusercontent.com/910e964c584b0184199784015a9e80f55199826e777a80482befd7e8d378fa4b/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131393231343230322f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/119214202)[![Quality Score](https://camo.githubusercontent.com/b690f61008fa08bb8571c3c8ae2689b8c364d51a705524d09764d8764bf98dfb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f72346e6b742f6c61726176656c2d6d616e61676561626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/r4nkt/laravel-manageable)[![Total Downloads](https://camo.githubusercontent.com/30c5f4002a4c3920d93b8d8742f25fa36debe9f94e81436e9dc1952f9db5980d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72346e6b742f6c61726176656c2d6d616e61676561626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/r4nkt/laravel-manageable)

The `r4nkt/laravel-manageable` package allows you to easily track who creates/updates your models.

All you have to do to get started is:

```
// 1. Add required columns to your table by using our macro manageable
Schema::create('orders', function (Blueprint $table) {
    // ...
    $table->manageable();

    // params: $bigIntegers (default: true), $foreignTable (default: 'users'), $foreignKey (default: 'id')
    $table->manageable(false, 'some_users_table', 'u_id');
});

// 2. Add the Manageable trait to your model
class Order extends Model
{
    use Manageable;
}
```

The macro `manageable` adds the following to your table:

```
$this->unsignedBigInteger('created_by')->nullable()->index();
$this->unsignedBigInteger('updated_by')->nullable()->index();

$this->foreign('created_by')
    ->references('id')
    ->on('users')
    ->onDelete('set null');

$this->foreign('updated_by')
    ->references('id')
    ->on('users')
    ->onDelete('set null');
```

Likewise, the macro `unmanageable` does the following to your table:

```
$this->dropForeign(['created_by']);

$this->dropForeign(['updated_by']);

$this->dropColumn(['created_by', 'updated_by']);
```

Documentation
-------------

[](#documentation)

Until further documentation is provided, please have a look at the tests.

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

[](#installation)

You can install the package via composer:

```
composer require r4nkt/laravel-manageable
```

The package will automatically register itself.

You can publish the config with:

```
php artisan vendor:publish --provider="R4nkt\Manageable\ManageableServiceProvider"
```

Testing
-------

[](#testing)

```
composer test
```

Security
--------

[](#security)

If you discover any security issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Morten Poul Jensen](https://github.com/pactode)
- [All contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 79.4% 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 ~140 days

Recently: every ~277 days

Total

17

Last Release

785d ago

Major Versions

v1.2.0 → v2.0.02019-03-21

v2.3.2 → v3.0.02022-06-18

v3.0.1 → v4.0.02022-09-25

v4.0.0 → v5.0.02024-03-18

PHP version history (5 changes)v1.0.0PHP ^7.0

v1.1.0PHP ^7.1

v2.3.0PHP ^7.2.5

v2.3.2PHP ^7.2.5 || ^8.0

v3.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0099a02e09e4fd03c5aca40dd7cc943391d0333009959c276321e59f6423965?d=identicon)[travis.elkins](/maintainers/travis.elkins)

---

Top Contributors

[![pactode](https://avatars.githubusercontent.com/u/5956778?v=4)](https://github.com/pactode "pactode (50 commits)")[![telkins](https://avatars.githubusercontent.com/u/53731?v=4)](https://github.com/telkins "telkins (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/r4nkt-laravel-manageable/health.svg)

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

###  Alternatives

[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[casbin/laravel-authz

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.

324339.9k4](/packages/casbin-laravel-authz)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[yajra/laravel-acl

Laravel ACL is a simple role, permission ACL for Laravel Framework.

112103.9k1](/packages/yajra-laravel-acl)[scaler-tech/laravel-saml2

SAML2 Service Provider integration for Laravel applications, based on OneLogin toolkit

2737.5k](/packages/scaler-tech-laravel-saml2)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2011.0k](/packages/alajusticia-laravel-logins)

PHPackages © 2026

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