PHPackages                             lnchuk/laravel-extended-resource - 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. [API Development](/categories/api)
4. /
5. lnchuk/laravel-extended-resource

ActiveLibrary[API Development](/categories/api)

lnchuk/laravel-extended-resource
================================

A Laravel package to provide extended resource routes, including deleted records, restoring records and confirmation of deletes

11.1k[3 PRs](https://github.com/LNCHUK/LaravelExtendedResource/pulls)PHP

Since Oct 8Pushed 3y ago2 watchersCompare

[ Source](https://github.com/LNCHUK/LaravelExtendedResource)[ Packagist](https://packagist.org/packages/lnchuk/laravel-extended-resource)[ RSS](/packages/lnchuk-laravel-extended-resource/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Laravel Extended Resource
=========================

[](#laravel-extended-resource)

This package extends the core `Route::resource()` method in a Laravel project, by adding 3 new routes.

The package adds the following routes to the resource method;

RouteController MethodPurposeGET /deleteddeleted()Displays all soft deleted modelsPATCH /model/{model}/restorerestore(Model $model)Restore a soft deleted modelGET /model/{model}/deletedelete(Model $model)Precursor for the destroy route, to confirm deletion of the modelSupport
-------

[](#support)

You are free to use the package on any version of Laravel you like, but at present it has only been tested, and is supported, on Laravel 7.x.

Testing and support will soon be added for older versions of Laravel.

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

[](#installation)

First, install the package via composer.

```
$ composer require lnchuk/laravel-extended-resource
```

Usage
-----

[](#usage)

Once the package is installed, add the following line to your AppServiceProvider's boot method.

```
use LNCHUK\LaravelExtendedResource\Helpers\ExtendedResource;

...
public function boot() {
    ExtendedResource::init();
}
...

```

From here the package is ready to use. All calls to the core `Route::resource()` method will automatically generate the extra routes listed above.

To generate extended resource controllers from the command line, you can use the newly added -e option to the `make:controller` command.

```
php artisan make:controller -e UsersController

```

Changelog
---------

[](#changelog)

Please view the [CHANGELOG](CHANGELOG.md) for details of what has been changed between versions.

Testing
-------

[](#testing)

To run the included tests, a composer script is added to run the PHPUnit tests.

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details on contributing to this package.

Security
--------

[](#security)

If you find any security related issues with this package, please contact  with details of the issue instead of using the GitHub issues tracker.

Accreditation
-------------

[](#accreditation)

This package is 100% free to use for all projects, both personal and commercial.

If you do use the package and like what it brings to your project, we'd love to hear from you. We're

Credits
-------

[](#credits)

Licence
-------

[](#licence)

The MIT License (MIT). Please see License File for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.9% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44026638?v=4)[LNCHUK](/maintainers/LNCHUK)[@LNCHUK](https://github.com/LNCHUK)

---

Top Contributors

[![LNCH](https://avatars.githubusercontent.com/u/10821244?v=4)](https://github.com/LNCH "LNCH (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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