"Archive and delete" (slide delete) plugin for CakePHP 3
$ composer require k1low/darumaotoshi
$ bin/cake plugin load Darumaotoshi
$ 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.
Copyright (c) 2015, Use Muffin and licensed under The MIT License.
under The MIT License.