PHPackages                             elaborate-code/laravel-resource-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. [Framework](/categories/framework)
4. /
5. elaborate-code/laravel-resource-routes

Abandoned → [elaborate-code/laravel-resource-routes](/?search=elaborate-code%2Flaravel-resource-routes)ArchivedLibrary[Framework](/categories/framework)

elaborate-code/laravel-resource-routes
======================================

A complementary Route Facade with methods to register resource routes

v1.0.0(3y ago)220[2 PRs](https://github.com/elaborate-code/laravel-resource-routes/pulls)MITPHPPHP ^8.1

Since Aug 17Pushed 2y agoCompare

[ Source](https://github.com/elaborate-code/laravel-resource-routes)[ Packagist](https://packagist.org/packages/elaborate-code/laravel-resource-routes)[ Docs](https://github.com/elaborate-code/laravel-resource-routes)[ RSS](/packages/elaborate-code-laravel-resource-routes/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (12)Versions (5)Used By (0)

Laravel Resource Routes
=======================

[](#laravel-resource-routes)

⚠️Do not use this library! If you like the idea just copy the code from [/src/ResourceRoute.php](https://github.com/elaborate-code/laravel-resource-routes/blob/main/src/ResourceRoute.php). You do not need to rely on me maintaining a small syntactic sugar to keep your product up and running.

[![Latest Version on Packagist](https://camo.githubusercontent.com/3b0953fb28cf73a596228e326dfccaf64eb17a5337ecea712e8b13329f7e2e8a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c61626f726174652d636f64652f6c61726176656c2d7265736f757263652d726f757465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elaborate-code/laravel-resource-routes)[![run-tests](https://github.com/elaborate-code/laravel-resource-routes/actions/workflows/run-tests.yml/badge.svg)](https://github.com/elaborate-code/laravel-resource-routes/actions/workflows/run-tests.yml)[![Fix PHP code style issues](https://github.com/elaborate-code/laravel-resource-routes/actions/workflows/fix-php-code-style-issues.yml/badge.svg)](https://github.com/elaborate-code/laravel-resource-routes/actions/workflows/fix-php-code-style-issues.yml)[![PHPStan](https://github.com/elaborate-code/laravel-resource-routes/actions/workflows/phpstan.yml/badge.svg)](https://github.com/elaborate-code/laravel-resource-routes/actions/workflows/phpstan.yml)[![Total Downloads](https://camo.githubusercontent.com/a9487ec9f1e11a9b5d47e282924b04d274cd831c8c6fa26aaec053ae4314672a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c61626f726174652d636f64652f6c61726176656c2d7265736f757263652d726f757465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elaborate-code/laravel-resource-routes)

[![banner](https://camo.githubusercontent.com/04d8011f8a4db736eb351e1e2405528f92a20f005dcf239b8bc2b4126e378064/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532305265736f75726365253230526f757465732e706e673f7468656d653d6461726b267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d656c61626f726174652d636f64652532466c61726176656c2d7265736f757263652d726f75746573267061747465726e3d65796573267374796c653d7374796c655f31266465736372697074696f6e3d412b636f6d706c656d656e746172792b526f7574652b4661636164652b776974682b6d6574686f64732b746f2b72656769737465722b7265736f757263652b726f75746573266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://camo.githubusercontent.com/04d8011f8a4db736eb351e1e2405528f92a20f005dcf239b8bc2b4126e378064/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532305265736f75726365253230526f757465732e706e673f7468656d653d6461726b267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d656c61626f726174652d636f64652532466c61726176656c2d7265736f757263652d726f75746573267061747465726e3d65796573267374796c653d7374796c655f31266465736372697074696f6e3d412b636f6d706c656d656e746172792b526f7574652b4661636164652b776974682b6d6574686f64732b746f2b72656769737465722b7265736f757263652b726f75746573266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

`Route::ressource` is a very convenient method that handles many conventions on the fly like **the controller methods names**, **the URI**, **the route name**, and **the HTTP verb**. But you may often find yourself chainning `Route::ressource` with `only` or `except` for various reasons:

- Altering **the ressource controller** methods signatures.
- Using different `middlewares` on **resouce routes**.

In the case you find yourself using `Route::ressource` for only one or two methods, this package may come in handy, to offer what may seem as a cleaner syntax.

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

[](#installation)

```
composer require elaborate-code/laravel-resource-routes
```

Usage example
-------------

[](#usage-example)

```
ResourceRoute::index('resources', ResourceController::class);
// Equivelent to:
// Route::ressource('resources', ResourceController::class)->only('index');

ResourceRoute::create('resources', ResourceController::class);
ResourceRoute::store('resources', ResourceController::class);
// Equivelent to:
// Route::ressource('resources', ResourceController::class)->only(['create', 'store']);

ResourceRoute::show('resources', ResourceController::class);

Route::middleware('can:update')->group(function () {
    ResourceRoute::edit('resources', ResourceController::class);
    ResourceRoute::update('resources', ResourceController::class);
});

ResourceRoute::destroy('resources', ResourceController::class);
```

Testing
-------

[](#testing)

```
vendor/bin/pest
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.8% 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 ~10 days

Total

2

Last Release

1354d ago

Major Versions

v0.1.0-beta → v1.0.02022-08-27

### Community

Maintainers

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

---

Top Contributors

[![medilies](https://avatars.githubusercontent.com/u/35309918?v=4)](https://github.com/medilies "medilies (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")

---

Tags

laravelpackageresourcesroutinglaravelroutingresourceselaborate-codelaravel-resource-routes

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/elaborate-code-laravel-resource-routes/health.svg)

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

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M225](/packages/laravel-horizon)[laravel/folio

Page based routing for Laravel.

608453.9k27](/packages/laravel-folio)[lunarstorm/laravel-ddd

A Laravel toolkit for Domain Driven Design patterns

17959.0k](/packages/lunarstorm-laravel-ddd)[bezhansalleh/filament-plugin-essentials

A collection of essential traits that streamline Filament plugin development by taking care of the boilerplate, so you can focus on shipping real features faster

27584.7k16](/packages/bezhansalleh-filament-plugin-essentials)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[jonpurvis/squeaky

A Laravel Validation Rule to Help Catch Profanity.

706.0k](/packages/jonpurvis-squeaky)

PHPackages © 2026

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