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. sjorsvanleeuwen/route-resource-extension

AbandonedArchivedLibrary

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

Resource extension to allow softDeletes

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

Since May 15Pushed 4y 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 1mo 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 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

1823d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16297a9bd0865c5c6525c9dfcd5319b1c1b3335f0b5f81210eeb56ff55ac7702?d=identicon)[sjorsvanleeuwen](/maintainers/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.1k124.3M624](/packages/barryvdh-laravel-debugbar)[livewire/livewire

A front-end framework for Laravel.

23.5k75.5M1.8k](/packages/livewire-livewire)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[laravel/cashier

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

2.5k25.9M107](/packages/laravel-cashier)[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.4k10.6M274](/packages/laravel-boost)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)

PHPackages © 2026

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