PHPackages                             tobymaxham/laravel-helper - 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. tobymaxham/laravel-helper

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

tobymaxham/laravel-helper
=========================

Bundle of Laravel helper stuff

v1.4(6y ago)2103MITPHPCI failing

Since Jul 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/TobyMaxham/laravel-helpers)[ Packagist](https://packagist.org/packages/tobymaxham/laravel-helper)[ Docs](https://github.com/TobyMaxhahm/laravel-helpers)[ RSS](/packages/tobymaxham-laravel-helper/feed)WikiDiscussions master Synced 2mo ago

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

TobyMaxham Laravel Helpers
==========================

[](#tobymaxham-laravel-helpers)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e358772e9e010f7c053c251c8c7709878fd5e1201320ff032bac347f7666ad82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f62796d617868616d2f6c61726176656c2d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tobymaxham/laravel-helper)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Quality Score](https://camo.githubusercontent.com/06a501ed7e35d6853020d8683d25e2e654a471240ad5e8bf751a86fd21f76cbd/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f546f62794d617868616d2f6c61726176656c2d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/TobyMaxham/laravel-helpers)[![StyleCI](https://camo.githubusercontent.com/548c699d11e954a9c5ac8f2aae1554774a2cc62ae19d8ee58cfa5ea87a051ab1/68747470733a2f2f7374796c6563692e696f2f7265706f732f3134333035363832392f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/143056829)[![Total Downloads](https://camo.githubusercontent.com/524b770f36d431ac7ce0d8ce018b9c7980aa55b0bef9629816124b447bd30660/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f62796d617868616d2f6c61726176656c2d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tobymaxham/laravel-helper)

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

[](#installation)

You can install this package via composer:

```
composer require tobymaxham/laravel-helper
```

Model Logging
-------------

[](#model-logging)

### Track User changes

[](#track-user-changes)

Track if user created, updated or deleted a `Model`. You have to add these attributes to you database table. By default the fields `created_by`, `updated_by` and `deleted_by` fields will be used.

```
namespace App;

use TobyMaxham\Helper\Models\Logs\ChangeByUser;
use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    use ChangeByUser;
}
```

You could also turn off tracking by returning `false` to the attribute fetching methods:

```
public function getCreatedByColumn()
{
    return false;
}
```

#### Migration

[](#migration)

With my `MigrationHelper` you can automatically add the fields to you migrations file:

```
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('posts', function (Blueprint $table) {
            $table->increments('id');

            $table->string('title');
            $table->text('content');

            MigrationHelper::addCreatedByUser($table);

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

Or you can create all three fields at once by calling `MigrationHelper::addChangedByUserFields($table)`.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

License
-------

[](#license)

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 86.2% 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 ~47 days

Recently: every ~96 days

Total

12

Last Release

2325d ago

Major Versions

v0.2 → v1.02018-08-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/900ab0a66bf701f3fb99a4db54276b4984cf3cf9b55ccad6df65c034f58be85f?d=identicon)[TobyMaxham](/maintainers/TobyMaxham)

---

Top Contributors

[![TobyMaxham](https://avatars.githubusercontent.com/u/5646469?v=4)](https://github.com/TobyMaxham "TobyMaxham (25 commits)")[![TobiasMaxham](https://avatars.githubusercontent.com/u/263875125?v=4)](https://github.com/TobiasMaxham "TobiasMaxham (4 commits)")

---

Tags

laravelhelperstobymaxham

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/tobymaxham-laravel-helper/health.svg)

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

###  Alternatives

[transprime-research/piper

PHP Pipe method execution with values from chained method executions

174.6k2](/packages/transprime-research-piper)

PHPackages © 2026

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