PHPackages                             sjorsvanleeuwen/route-resource-extension - 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. [Database &amp; ORM](/categories/database)
4. /
5. sjorsvanleeuwen/route-resource-extension

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

sjorsvanleeuwen/route-resource-extension
========================================

Resource extension to allow softDeletes

v1.0(5y ago)017MITPHPPHP ^7.3|^8.0

Since May 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sjorsvanleeuwen/route-resource-extension)[ Packagist](https://packagist.org/packages/sjorsvanleeuwen/route-resource-extension)[ RSS](/packages/sjorsvanleeuwen-route-resource-extension/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Route resource extension
========================

[](#route-resource-extension)

This package attempts to help with building routes for models with softdeletes.

It adds a macro to extend the existing routes and build some other routes on top of it for restoring, and an index of trashed models.

Pull in the package:

```
composer require sjorsvanleeuwen/route-resource-extension
```

Next, open your route file and modify a resource route like so:

```
Route::resource('myresource', MyResourceController::class)->withSoftDeletes();
```

Next to the normal routes this will create the following routes:

MethodURINameActionGET|HEADmyresource/trashmyresource.trashMyResourceController@trashPATCHmyresource/{myresource}/restoremyresource.restoreMyResourceController@restore

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

1922d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15905549?v=4)[Sjors van Leeuwen](/maintainers/sjorsvanleeuwen)[@sjorsvanleeuwen](https://github.com/sjorsvanleeuwen)

---

Top Contributors

[![sjorsvanleeuwen](https://avatars.githubusercontent.com/u/15905549?v=4)](https://github.com/sjorsvanleeuwen "sjorsvanleeuwen (2 commits)")

### Embed Badge

![Health badge](/badges/sjorsvanleeuwen-route-resource-extension/health.svg)

```
[![Health](https://phpackages.com/badges/sjorsvanleeuwen-route-resource-extension/health.svg)](https://phpackages.com/packages/sjorsvanleeuwen-route-resource-extension)
```

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.3k136.0M827](/packages/barryvdh-laravel-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.3k2.9M81](/packages/fruitcake-laravel-debugbar)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.6k26.0M810](/packages/laravel-boost)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k31.8M162](/packages/laravel-cashier)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

79227.1M231](/packages/laravel-mcp)

PHPackages © 2026

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