PHPackages                             dragon-code/extended-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dragon-code/extended-routes

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

dragon-code/extended-routes
===========================

This helper extends the standard set of resource routing methods to work with SoftDeletes and other extends

4.0.1(2y ago)168.7k11MITPHPPHP ^8.1

Since Jun 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/TheDragonCode/extended-routes)[ Packagist](https://packagist.org/packages/dragon-code/extended-routes)[ Fund](https://boosty.to/dragon-code)[ Fund](https://www.donationalerts.com/r/dragon_code)[ RSS](/packages/dragon-code-extended-routes/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (10)Dependencies (5)Versions (25)Used By (1)

Extended Routes for Laravel
---------------------------

[](#extended-routes-for-laravel)

[![Extended Routes](https://camo.githubusercontent.com/707d2d9bd2b30f707f8f2d15fe3db354eeb994d73bb21e46b4951f335629d978/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f546865447261676f6e436f64652f657874656e6465642d726f757465732e7376673f6272616e643d6c61726176656c)](https://camo.githubusercontent.com/707d2d9bd2b30f707f8f2d15fe3db354eeb994d73bb21e46b4951f335629d978/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f546865447261676f6e436f64652f657874656e6465642d726f757465732e7376673f6272616e643d6c61726176656c)

[![Stable Version](https://camo.githubusercontent.com/6ea76c4be29b01c108dc3d2307a15006c559ba2bda57cbea9f639ce879603eb0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f546865447261676f6e436f64652f657874656e6465642d726f757465733f6c6162656c3d737461626c65267374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/extended-routes)[![Unstable Version](https://camo.githubusercontent.com/85afbac0745eb275d863cee4b1701a70c0e30315d27990b00f1abd553b8761e8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e737461626c652d6465762d2d6d61696e2d6f72616e67653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/extended-routes)[![Total Downloads](https://camo.githubusercontent.com/9191ea19e3b16e9562e173ab7d7f0b0ce2b726c742d8879b81adc4788dc825ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647261676f6e2d636f64652f657874656e6465642d726f757465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/extended-routes)[![Github Workflow Status](https://camo.githubusercontent.com/ac08ebe8e2a0ed4bb9e15ede8c19b2d22d3ed53692cb43f06c38cfa3ebe0c0e4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f546865447261676f6e436f64652f657874656e6465642d726f757465732f706870756e69742e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/TheDragonCode/extended-routes/actions)[![License](https://camo.githubusercontent.com/45580b7eb68aa5df088d23aec563198968b49f1586aec9c93963451146901687/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f647261676f6e2d636f64652f657874656e6465642d726f757465732e7376673f7374796c653d666c61742d737175617265)](LICENSE)

> This helper extends the standard set of resource routing methods to work with SoftDeletes and other extends.

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

[](#installation)

### Compatibility

[](#compatibility)

LaravelPHPExtended Routes Version7, 8, 9, 107.3, 7.4, 8.0, 8.1, 8.2`^3.0`10, 118.1, 8.2, 8.3`^4.0`To get the latest version of `Extended Routes`, simply require the project using [Composer](https://getcomposer.org):

```
$ composer require dragon-code/extended-routes
```

Instead, you may of course manually update your require block and run `composer update` if you so choose:

```
{
    "require": {
        "dragon-code/extended-routes": "^4.0"
    }
}
```

### Upgrade from `andrey-helldar/extended-routes`

[](#upgrade-from-andrey-helldarextended-routes)

1. In your `composer.json` file, replace `"andrey-helldar/extended-routes": "^2.0"` with `"dragon-code/extended-routes": "^3.0"`.
2. Replace the `Helldar\ExtendedRoutes` namespace prefix with `DragonCode\ExtendedRoutes` in your app;
3. Run the `command composer` update.
4. Profit!

Using
-----

[](#using)

### With trait

[](#with-trait)

```
use DragonCode\ExtendedRoutes\Routing\ModelBindingResolver;
use DragonCode\ExtendedRoutes\Traits\ExtendedSoftDeletes;

class Page extends Model
{
    use ExtendedSoftDeletes;
}
```

### Extends of the abstract model

[](#extends-of-the-abstract-model)

```
use DragonCode\ExtendedRoutes\Models\ExtendedSoftDeletes;
//use Illuminate\Database\Eloquent\SoftDeletes;

class Foo extends ExtendedSoftDeletes
{
    //use SoftDeletes; apiRestorableResource('foos', 'FoosController');

// or

Route::apiRestorableResource('foos', 'FoosController');
```

Referencing is also available:

```
use App\Http\Controllers\FoosController;

app('router')->apiRestorableResource('foos', FoosController::class);

// or

Route::apiRestorableResource('foos', FoosController::class);
```

MethodURINameActionMiddlewareGET/HEADapi/foosfoos.indexApp\\Http\\Controllers\\FoosController@indexapiPOSTapi/foosfoos.storeApp\\Http\\Controllers\\FoosController@storeapiGET/HEADapi/foos/trashedfoos.trashedApp\\Http\\Controllers\\FoosController@trashedapiGET/HEADapi/foos/{foo}foos.showApp\\Http\\Controllers\\FoosController@showapiPUT/PATCHapi/foos/{foo}foos.updateApp\\Http\\Controllers\\FoosController@updateapiDELETEapi/foos/{foo}foos.destroyApp\\Http\\Controllers\\FoosController@destroyapiPOSTapi/foos/{foo}/restorefoos.restoreApp\\Http\\Controllers\\FoosController@restoreapiLicense
-------

[](#license)

This package is licensed under the [MIT License](LICENSE).

This package was written with the participation of [Maksim (Ellrion) Platonov](https://github.com/Ellrion) under [MIT License](LICENSE).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~98 days

Total

24

Last Release

790d ago

Major Versions

v1.3.3 → v2.0.02020-03-10

2.x-dev → v3.0.02021-11-20

v3.2.0 → 4.0.02024-03-12

PHP version history (7 changes)1.0.0PHP &gt;=5.6.9

v2.0.0PHP ^7.2

v2.2.0PHP ^7.2|^8.0

v2.3.0PHP ^7.2.5|^8.0

v3.0.0PHP ^7.3|^8.0

v3.1.0PHP ^7.3 || ^8.0

4.0.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (34 commits)")[![andrey-helldar](https://avatars.githubusercontent.com/u/10347617?v=4)](https://github.com/andrey-helldar "andrey-helldar (28 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (27 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelroutesrouterresourcedragondragon codeandrey helldarextended routes

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dragon-code-extended-routes/health.svg)

```
[![Health](https://phpackages.com/badges/dragon-code-extended-routes/health.svg)](https://phpackages.com/packages/dragon-code-extended-routes)
```

###  Alternatives

[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[zonneplan/laravel-module-loader

Module loader for Laravel

24118.4k](/packages/zonneplan-laravel-module-loader)[dragon-code/migrate-db

Easy data transfer from one database to another

15717.4k](/packages/dragon-code-migrate-db)[dragon-code/laravel-cache

An improved interface for working with cache

6844.8k10](/packages/dragon-code-laravel-cache)

PHPackages © 2026

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