munettt/userstamps

Userstamps for Laravel

v0.4.0 2022-02-04 16:15 UTC

This package is auto-updated.

Last update: 2025-07-05 00:06:47 UTC


README

Create created_by and updated_by for your migrations.

$table->userstamps();

will add

created_by and updated_by column

Comes with handy trait to use in your model

use Munettt\Userstamps\Userstamps;

class Book extends Model
{
    use Userstamps;

    //
}

which register events upon creating/updating model with appropriate created_by / updated_by user id.