PHPackages                             zacksmash/laravel-softdelete-routes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. zacksmash/laravel-softdelete-routes

ActiveLibrary

zacksmash/laravel-softdelete-routes
===================================

Restore and Erase resource actions

v1.1.6(1y ago)1825MITPHPPHP ^8.2CI passing

Since Aug 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zacksmash/laravel-softdelete-routes)[ Packagist](https://packagist.org/packages/zacksmash/laravel-softdelete-routes)[ Docs](https://github.com/zacksmash/laravel-softdelete-routes)[ RSS](/packages/zacksmash-laravel-softdelete-routes/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (9)Versions (9)Used By (0)

Laravel Soft Delete Routes
==========================

[](#laravel-soft-delete-routes)

[![Tests](https://github.com/zacksmash/laravel-softdelete-routes/actions/workflows/tests.yml/badge.svg)](https://github.com/zacksmash/laravel-softdelete-routes/actions/workflows/tests.yml)

Intro
-----

[](#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
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance48

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~34 days

Recently: every ~0 days

Total

8

Last Release

380d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a45f4114b413d88307a50c328c235b23aa896a3782185126ed26fe2bca3385ac?d=identicon)[zacksmash](/maintainers/zacksmash)

---

Top Contributors

[![zacksmash](https://avatars.githubusercontent.com/u/6118407?v=4)](https://github.com/zacksmash "zacksmash (9 commits)")

---

Tags

laravelresourcerestorerouteactionserase

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/zacksmash-laravel-softdelete-routes/health.svg)

```
[![Health](https://phpackages.com/badges/zacksmash-laravel-softdelete-routes/health.svg)](https://phpackages.com/packages/zacksmash-laravel-softdelete-routes)
```

###  Alternatives

[spatie/laravel-sql-commenter

Add comments to SQL queries made by Laravel

1931.4M1](/packages/spatie-laravel-sql-commenter)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
