"Archive and delete" (slide delete) plugin for CakePHP 3
$ composer require k1low/darumaotoshi
$ bin/cake plugin load Darumaotoshi
Load required database table
$ bin/cake migrations migrate --plugin Darumaotoshi
// in the initialize() method $this->addBehavior('Darumaotoshi.Darumaotoshi');
If you'd like to have related records marked as trashed when deleting a parent item, you can just attach the behavior to the related table classes, and set the
'dependent' => true, 'cascadeCallbacks' => true options in the table relationships.
under The MIT License.