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 yesterday

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

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

Unknown

Total

1

Last Release

1876d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8465.5M96](/packages/laravel-doctrine-orm)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5443.8k](/packages/hasinhayder-tyro-dashboard)[laravel/surveyor

Static analysis tool for Laravel applications.

86121.4k13](/packages/laravel-surveyor)

PHPackages © 2026

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