Download the PHP package always-open/laravel-process-stamps without Composer
On this page you can find all versions of the php package always-open/laravel-process-stamps. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download always-open/laravel-process-stamps
More information about always-open/laravel-process-stamps
Files in always-open/laravel-process-stamps
Package laravel-process-stamps
Short Description Logs which process created or modified a record
License MIT
Homepage https://github.com/always-open/laravel-process-stamps
Informations about the package laravel-process-stamps
Laravel Process Stamps
It is sometimes very useful to know which process created or modified a particular record in your database. This package provides a trait to add to your Laravel models which automatically logs that for you.
Installation
You can install the package via composer:
Configuration
Running the above command will publish both the migration and the config file.
Usage
After adding the proper fields to your table, add the trait to your model.
Next, create a migration for your table and include the following:
To specify your own foreign key or index names, include the following options:
That will generate the nessesary field names to track processes.
Testing
Using Docker
All assets are set up under the docker-compose.yml file. The first time you run the docker image you must build it with the following command:
Then you can bring it up in the background using:
And the image is aliased so you can access its command line via:
From there you can run the tests within an isolated environment
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email @tomschlick or @qschmick directly instead of using the issue tracker.
Credits
- Tom Schlick
- All Contributors
License
The MIT License (MIT). Please see License File for more information.