oxenti/soft-delete

There is no license information available for the latest version (dev-master) of this package.

SoftDelete plugin for CakePHP

Installs: 51

Dependents: 4

Suggesters: 0

Security: 0

Stars: 0

Watchers: 8

Forks: 0

Open Issues: 0

Type:cakephp-plugin

dev-master 2015-10-15 17:01 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:12:09 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

  1. Load the plugin:
// In /config/bootstrap.php
Plugin::load('SoftDelete');
  1. 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;
    ...