LaravelPackages.net
Acme Inc.
Toggle sidebar
hexathos/laravel-hasuserdata

Autofills updated_by, created_by, updated_at and created_at

207
0
v0.1.0
About hexathos/laravel-hasuserdata

hexathos/laravel-hasuserdata is a Laravel package for autofills updated_by, created_by, updated_at and created_at. It currently has 0 GitHub stars and 207 downloads on Packagist (latest version v0.1.0). Install it with composer require hexathos/laravel-hasuserdata. Discover more Laravel packages by hexathos or browse all Laravel packages to compare alternatives.

Last updated

Laravel-HasUserData

About

This package automaticly adds username to models that have the Hexathos\Traits\HasUserData trait while creating or updating a Model.

It requires string-able fields "created_by" and "updated_by" in your database.

How to install

Require the package:

$ composer require hexathos/laravel-hasuserdata

Create a migration that adds created_by and updated_by fields to your models table

Include the Namespace in your Model and add the trait

namespace App\Models;

use Hexathos\Traits\HasUserData;

/* .snipped. */

use HasUserData;

That's it.

Comments