Download the PHP package kayiwarahim/laravel-userstamps without Composer
On this page you can find all versions of the php package kayiwarahim/laravel-userstamps. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kayiwarahim/laravel-userstamps
More information about kayiwarahim/laravel-userstamps
Files in kayiwarahim/laravel-userstamps
Package laravel-userstamps
Short Description A simple Laravel package for Eloquent Model user specific fields.
License MIT
Homepage https://github.com/kayiwarahim/laravel-userstamps
Informations about the package laravel-userstamps
Laravel Userstamps
Laravel Userstamps is a simple Laravel package for your Eloquent Model user specific fields. This package automatically inserts/updates an user id on your table on who created, last updated and deleted the record.
Install
-
Add repositories in composer.json
-
Add the package name in
composer.jsonrequire section:
Usage
Update your model's migration and add created_by, updated_by and deleted_by field using the userstamps() blueprint macro.
Then use UserstampsTrait on your model.
Dropping columns
You can drop auditable columns using dropUserstamps() method.
And your done!
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-userstamps with dependencies
illuminate/support Version ^6.0 || ^9.0 || ^10.0
illuminate/database Version ^6.0 || ^9.0 || ^10.0