Download the PHP package backpack/revise-operation without Composer
On this page you can find all versions of the php package backpack/revise-operation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download backpack/revise-operation
More information about backpack/revise-operation
Files in backpack/revise-operation
Package revise-operation
Short Description Backpack interface for venturecraft/revisionable
License MIT
Homepage https://github.com/laravel-backpack/revise-operation
Informations about the package revise-operation
ReviseOperation for Backpack for Laravel
Adds an interface for to your Backpack CRUDs, so that the admin can:
- see the changes that have been made to an entry;
- undo changes;
allows you to store, see and undo changes to entries on an Eloquent model. This package just provides an admin interface for it, in the form of a Backpack operation, that you can use on the CrudControllers of entities that have the Revisionable trait.
When used, this operation will show another button for each entry in the table view. On click, that button opens another page, which will allow an admin to see all changes and who made them:
Installation
Step 1. Require the package:
This will automatically install too, if it's not already installed.
Step 2. Create the Revisions table:
Step 3. Use RevisionableTrait on your model, and an method that returns an attribute on the model that the admin can use to distiguish between entries (ex: name, title, etc). If you are using another bootable trait be sure to override the boot method in your model.
Step 4. In your CrudController, use the operation trait:
For complex usage, head on over to VentureCraft/revisionable to see the full documentation and extra configuration options.
Customizing views
If you need to change the operation views in any way, you can do so by creating a blade file with the same name in your resources/views/vendor/backpack/revise-operation
directory. Blade files there take priority over files in the package.
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Cristian Tabacitu
- All Contributors
License
MIT. Please see the license file for more information.