PHPackages                             humans/laravel-singleton-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. humans/laravel-singleton-routes

AbandonedArchivedLibrary

humans/laravel-singleton-routes
===============================

Add singleton routes for Laravel.

0.3.0(4y ago)17.5k[1 issues](https://github.com/humans/laravel-singleton-routes/issues)MITPHPPHP ^8.0

Since Jan 26Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (6)Used By (0)

Laravel Singleton Routes
========================

[](#laravel-singleton-routes)

This is a package that adds support for Rails/Phoenix's singleton routes in Laravel. Singleton routes, or singular resources are routes that do not need to have an identifier as a context.

Unlike standard resources, singleton routes do not have an index method.

An example for this would be updating the current user's details.

```
show      GET         /my/profile
create    GET         /my/profile/create
store     POST        /my/profile
edit      GET         /my/profile/edit
update    PUT|PATCH   /my/profile
destroy   DELETE      /my/profile

```

Installation and Usage
----------------------

[](#installation-and-usage)

Install the package with composer

```
composer require humans/laravel-singleton-routes

```

Register a singleton route.

```
Route::singleton('profile', PasswordController::class);
```

Register a nested singleton route.

```
Route::singleton('accounts.suspension', AccountSuspensionController::class)
  ->only('show', 'store', 'destroy');
```

Like other Laravel resources, you will have access to resource methods such as `middleware`, `only`, `except`. As of the moment, it's not possible to chain it after calling a Route method. `Route::prefix()->singleton()` ***WILL NOT*** work.

Wrapping the registration in a group will make it work.

```
Route::prefix('admin')->as('admin.')->group(function () {
  Route::singleton('theme', ThemeController::class)->only('update');
  // url  =>   PUT|PATCH  /admin/theme
  // name =>   admin.theme.update
});
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

5

Last Release

1566d ago

### Community

Maintainers

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

---

Top Contributors

[![jaggy](https://avatars.githubusercontent.com/u/1993075?v=4)](https://github.com/jaggy "jaggy (7 commits)")

### Embed Badge

![Health badge](/badges/humans-laravel-singleton-routes/health.svg)

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

PHPackages © 2026

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