revati/laravel-soft-delete

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

Extend laravel core support for soft delete

dev-master 2014-02-01 16:20 UTC

This package is not auto-updated.

Last update: 2024-11-23 16:55:48 UTC


README

This Laravel 4 package provides a additional routes for soft deletable resources:

  • route for restoring resource PUT/PATCH
  • route for force deleting resource DELETE (default delete used as soft delete)
  • route for trashed resources list GET

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require revati/laravel-soft-delete.

"require": {
    "laravel/framework": "4.1.*",
    "revati/laravel-soft-delete": "dev-master"
}

Next, update Composer from the Terminal:

composer update

Once this operation completes, the final step is to add the service provider. Open app/config/app.php, and add a new item to the providers array.

'Revati\SoftDelete\SoftDeleteServiceProvider'

That's it! You're all set to go.

Generated routes