zacksmash/laravel-softdelete-routes
最新稳定版本:v1.1.6
Composer 安装命令:
composer require zacksmash/laravel-softdelete-routes
包简介
Restore and Erase resource actions
README 文档
README
Intro
This package gives you some helper methods on route resources to handle extra actions for restoring and force deleting a model.
// routes/web.php Route::resource('items', ItemController::class) ->softDeletes(); // Or individually, if you only need one Route::resource('items', ItemController::class) ->withRestore() ->withErase()
This will give you the standard route resource methods, but you'll also get:
# standard routes...
PATCH items/{item}/restore ..... items.restore › ItemController@restore
DELETE items/{item}/erase ......... items.erase › ItemController@erase
统计信息
- 总下载量: 609
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-29