oxenti / soft-delete
SoftDelete plugin for CakePHP
Installs: 51
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.4
- cakephp/cakephp: ~3.0
- cakephp/plugin-installer: *
Requires (Dev)
This package is not auto-updated.
Last update: 2025-01-04 19:04:47 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;
...