PHPackages                             arifmahmudrana/laravel-resource-route-wildcard-alias - 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. arifmahmudrana/laravel-resource-route-wildcard-alias

ActiveLibrary[HTTP &amp; Networking](/categories/http)

arifmahmudrana/laravel-resource-route-wildcard-alias
====================================================

Laravel resource route wildcard alias to use same model name in route model binding with alias

v1.0.0(10y ago)1211MITPHPPHP &gt;=5.4.0

Since Feb 12Pushed 10y ago2 watchersCompare

[ Source](https://github.com/arifmahmudrana/laravel-resource-route-wildcard-alias)[ Packagist](https://packagist.org/packages/arifmahmudrana/laravel-resource-route-wildcard-alias)[ RSS](/packages/arifmahmudrana-laravel-resource-route-wildcard-alias/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

:Laravel 5 Resource Route Wildcard Alias
========================================

[](#laravel-5-resource-route-wildcard-alias)

Usage
-----

[](#usage)

### Step 1: Install Through Composer

[](#step-1-install-through-composer)

```
composer require arifmahmudrana/laravel-resource-route-wildcard-alias

```

### Step 2: Add the Service Provider

[](#step-2-add-the-service-provider)

Add service providers to `providers` array in `config/app.php`. Like so:

```
AriMahmudRana\laravelResourceRouteWildcardAlias\LaravelResourceRouteWildcardAliasServiceProvider::class
```

and that's it.

Examples
--------

[](#examples)

Create resource routes with aliases.

```
Route::group(['middleware' => ['web']], function () {
    Route::resource('album.photo.hello', 'PhotoController', ['alias' => ['album' => 'a', 'photo' => 'p', 'hello' => 'h']]);
});
```

and the output in `php artisan route:list` is.

```
+--------+-----------+------------------------------------+---------------------------+----------------------------------------------+------------+
| Domain | Method    | URI                                | Name                      | Action                                       | Middleware |
+--------+-----------+------------------------------------+---------------------------+----------------------------------------------+------------+
|        | GET|HEAD  | /                                  |                           | Closure                                      |            |
|        | POST      | album/{a}/photo/{p}/hello          | album.photo.hello.store   | App\Http\Controllers\PhotoController@store   | web        |
|        | GET|HEAD  | album/{a}/photo/{p}/hello          | album.photo.hello.index   | App\Http\Controllers\PhotoController@index   | web        |
|        | GET|HEAD  | album/{a}/photo/{p}/hello/create   | album.photo.hello.create  | App\Http\Controllers\PhotoController@create  | web        |
|        | DELETE    | album/{a}/photo/{p}/hello/{h}      | album.photo.hello.destroy | App\Http\Controllers\PhotoController@destroy | web        |
|        | PUT|PATCH | album/{a}/photo/{p}/hello/{h}      | album.photo.hello.update  | App\Http\Controllers\PhotoController@update  | web        |
|        | GET|HEAD  | album/{a}/photo/{p}/hello/{h}      | album.photo.hello.show    | App\Http\Controllers\PhotoController@show    | web        |
|        | GET|HEAD  | album/{a}/photo/{p}/hello/{h}/edit | album.photo.hello.edit    | App\Http\Controllers\PhotoController@edit    | web        |
+--------+-----------+------------------------------------+---------------------------+----------------------------------------------+------------+

```

License
-------

[](#license)

Released under the MIT License, see LICENSE.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3795d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2046796?v=4)[Arif Mahmud Rana](/maintainers/arifmahmudrana)[@arifmahmudrana](https://github.com/arifmahmudrana)

---

Top Contributors

[![arifmahmudrana](https://avatars.githubusercontent.com/u/2046796?v=4)](https://github.com/arifmahmudrana "arifmahmudrana (1 commits)")

---

Tags

laravelmodelresourcealiasroutebinding

### Embed Badge

![Health badge](/badges/arifmahmudrana-laravel-resource-route-wildcard-alias/health.svg)

```
[![Health](https://phpackages.com/badges/arifmahmudrana-laravel-resource-route-wildcard-alias/health.svg)](https://phpackages.com/packages/arifmahmudrana-laravel-resource-route-wildcard-alias)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)[lemaur/eloquent-publishing

218.1k1](/packages/lemaur-eloquent-publishing)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

2038.9k](/packages/onlime-laravel-http-client-global-logger)[illuminatech/model-route

Allows continuing route matching in case bound model does not exist

121.2k](/packages/illuminatech-model-route)

PHPackages © 2026

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