PHPackages                             sjorsvanleeuwen/laravel-extended-resource-registrar - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. sjorsvanleeuwen/laravel-extended-resource-registrar

Abandoned → [sjorsvanleeuwen/route-resource-extension](/?search=sjorsvanleeuwen%2Froute-resource-extension)ArchivedLibrary[HTTP &amp; Networking](/categories/http)

sjorsvanleeuwen/laravel-extended-resource-registrar
===================================================

Extension for Laravel Router and ResourceRegistrar to handle softDeletes and simple delete without HTTP DELETE method

0.6(7y ago)0751MITPHP

Since Sep 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sjorsvanleeuwen/laravel-extended-resource-registrar)[ Packagist](https://packagist.org/packages/sjorsvanleeuwen/laravel-extended-resource-registrar)[ RSS](/packages/sjorsvanleeuwen-laravel-extended-resource-registrar/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (0)

Laravel Extended Resource Registrar
-----------------------------------

[](#laravel-extended-resource-registrar)

[![Latest Version on Packagist](https://camo.githubusercontent.com/455e2378fd066c23cb16d5244be8c0d1f97ade517bf28f9801be2582297890a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736a6f727376616e6c65657577656e2f6c61726176656c2d657874656e6465642d7265736f757263652d7265676973747261722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sjorsvanleeuwen/laravel-extended-resource-registrar)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/95133f7c408ee38ffa488b568796e2e95a5e08d2acd8b58bc3d8f3d38b32eb47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736a6f727376616e6c65657577656e2f6c61726176656c2d657874656e6465642d7265736f757263652d7265676973747261722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sjorsvanleeuwen/laravel-extended-resource-registrar)

This is a package to extend the resource registrar with Laravel 5. It includes a ServiceProvider to register the new router.

Installation
------------

[](#installation)

Require this package with composer. It is recommended to only require the package for development.

```
composer require sjorsvanleeuwen/laravel-extended-resource-registrar
```

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Make sure to change your app/Http/Kernel.php like so

```
/**
 * Get the route dispatcher callback.
 * Do this to make the new Router work
 *
 * @return \Closure
 */
protected function dispatchToRouter()
{
    $this->router = $this->app['router'];

    foreach ($this->middlewareGroups as $key => $middleware)
    {
        $this->router->middlewareGroup($key, $middleware);
    }

    foreach ($this->routeMiddleware as $key => $middleware)
    {
        $this->router->aliasMiddleware($key, $middleware);
    }

    return parent::dispatchToRouter();
}
```

THe reason for this addition: The default router is already bound and passed on to the kernel before other serviceproviders are loaded, the kernel does not know about the new Router and can not load the routes registered because they are registered with the new router and the kernel bound in public/index.php has the default router bound.

### Laravel 5.5+:

[](#laravel-55)

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

```
Sjorsvanleeuwen\ExtendedResourceRegistrar\ServiceProvider::class,
```

### Lumen:

[](#lumen)

Not tested with Lumen

Usage
-----

[](#usage)

You can now create a resourceful route with softDeletes

```
Route::resource('foo', 'FooController')->withSoftDeletes();
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

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 ~98 days

Recently: every ~122 days

Total

6

Last Release

2710d 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 (8 commits)")

---

Tags

laravelrouterresourceextension

### Embed Badge

![Health badge](/badges/sjorsvanleeuwen-laravel-extended-resource-registrar/health.svg)

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

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[lomkit/laravel-rest-api

A package to build quick and robust rest api for the Laravel framework.

59463.6k](/packages/lomkit-laravel-rest-api)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[justbetter/laravel-http3earlyhints

A HTTP3 Early Hints Middleware for Laravel

1977.0k4](/packages/justbetter-laravel-http3earlyhints)

PHPackages © 2026

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