Download the PHP package ereminmdev/yii2-deleted without Composer
On this page you can find all versions of the php package ereminmdev/yii2-deleted. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ereminmdev/yii2-deleted
More information about ereminmdev/yii2-deleted
Files in ereminmdev/yii2-deleted
Download ereminmdev/yii2-deleted
More information about ereminmdev/yii2-deleted
Files in ereminmdev/yii2-deleted
Vendor ereminmdev
Package yii2-deleted
Short Description Store/restore deleted models.
License MIT
Homepage https://github.com/ereminmdev/yii2-deleted
Package yii2-deleted
Short Description Store/restore deleted models.
License MIT
Homepage https://github.com/ereminmdev/yii2-deleted
Please rate this library. Is it a good library?
Informations about the package yii2-deleted
yii2-deleted
Model, behavior and action to store/restore active records.
Install
composer require --prefer-dist ereminmdev/yii2-deleted
and run migrations:
yii migrate --migrationPath=@vendor/ereminmdev/yii2-deleted/migrations --interactive=0
Use
1) Add behavior to active record model:
or with custom comment:
2) Add action to site controller:
Restore
Create url to restore action and specify id
parameter of needed Deleted model:
Cron clean word
For example, clear Deleted models older than 1 month:
If EVENT_BEFORE_DELETE or EVENT_AFTER_DELETE events needed:
All versions of yii2-deleted with dependencies
PHP Build Version
Package Version
The package ereminmdev/yii2-deleted contains the following files
Loading the files please wait ....