hpolthof / laravel-auditable
There is no license information available for the latest version (v1.0.2) of this package.
Allow for easy addition of created_by and updated_by fields.
v1.0.2
2019-08-07 20:30 UTC
Requires
- laravel/framework: ^5.8
Requires (Dev)
- orchestra/testbench: ^3.8
This package is auto-updated.
Last update: 2024-11-08 08:16:50 UTC
README
Add the ability to easily add created_by
and updated_by
fields
to a migration.
How to use?
Require the package
composer require hpolthof/laravel-auditable
In a migration
In a migration you can now do something like:
Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->string('email'); $table->auditable(); $table->timestamps(); });
You can also use the function dropAuditable
in your down()
method.
Disclaimer
This package is used for internal development, but published for public use. Obviously this software comes as is, and there are no warranties or whatsoever.
If you like the package it is always appreciated if you drop a message of gratitude! ;-)
The package was build by: Paul Olthof