oxenti / soft-delete
There is no license information available for the latest version (dev-master) of this package.
SoftDelete plugin for CakePHP
dev-master
2015-10-15 17:01 UTC
Requires
- php: >=5.4
- cakephp/cakephp: ~3.0
- cakephp/plugin-installer: *
Requires (Dev)
This package is not auto-updated.
Last update: 2026-03-15 01:37:58 UTC
README
This plugins has been developped for cakephp 3.x.
Installation
You can install this plugin into your CakePHP application using composer.
Update your composer file to include this plugin:
composer require oxenti/soft-delete
Configuration
- Load the plugin:
// In /config/bootstrap.php
Plugin::load('SoftDelete');
- Make a model soft deleteable by using SoftDelete trait:
// in src/Model/Table/UsersTable.php
...
use SoftDelete\Model\Table\SoftDeleteTrait;
class UsersTable extends Table
{
use SoftDeleteTrait;
...