Download the PHP package findyouractivity/laravel-userstamps without Composer
On this page you can find all versions of the php package findyouractivity/laravel-userstamps. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download findyouractivity/laravel-userstamps
More information about findyouractivity/laravel-userstamps
Files in findyouractivity/laravel-userstamps
Package laravel-userstamps
Short Description Package to add created_by, updated_by and deleted_by to models.
License MIT
Homepage https://github.com/findyouractivity/laravel-userstamps
Informations about the package laravel-userstamps
Package to maintain the users who created, updated and deleted eloquent models
Provides an Eloquent trait to automatically maintain the created_by, updated_by, and deleted_by (when using softDeletes) on your models by the currently logged in user.
Installation and usage
This package requires PHP 7.2 and Laravel 5.6 or higher. Install the package by running the following command in your console;
You can publish the config file with:
This is the contents of the published config file:
Add the macro to your migration of your model
Add the Trait to your model
There will be methods available to retrieve the user object which performs the action for creating, updating or deleting
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security-related issues, please email to [email protected] instead of using the issue tracker.
Credits
- Sqits
- Ruud Schaaphuizen
- All Contributors
License
The MIT License (MIT). Please see License File for more information.