Package Data | |
---|---|
Maintainer Username: | revati |
Maintainer Contact: | rgulans@gmail.com (revati) |
Package Create Date: | 2014-02-01 |
Package Last Update: | 2014-02-01 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-12-15 15:17:42 |
Package Statistics | |
---|---|
Total Downloads: | 21 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 1 |
This Laravel 4 package provides a additional routes for soft deletable resources:
PUT/PATCH
DELETE
(default delete used as soft delete)GET
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.
| Verb | Path | Action | Route Name | | --------- | ---------------------------- | ------------ | ----------------------- | | Default routes |||| | GET | /resource | index | resource.index | | GET | /resource/create | create | resource.create | | POST | /resource | store | resource.store | | GET | /resource/{resource} | show | resource.show | | GET | /resource/{resource}/edit | edit | resource.edit | | PUT/PATCH | /resource/{resource} | update | resource.update | | DELETE | /resource/{resource} | destroy | resource.destroy | | Additional routes |||| | GET | /resource/trash | trash | resource.trash | | PUT/PATCH | /resource/{resource}/restore | restore | resource.restore | | GET | /resource/{resource}/confirm | restore | resource.confirmDestroy | | DELETE | /resource/{resource}/force | forceDestroy | resource.forceDestroy |