PHPackages                             pion/laravel-support-controllers - 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. pion/laravel-support-controllers

ActiveLibrary[Framework](/categories/framework)

pion/laravel-support-controllers
================================

A set of support classes/traits for Laravel Controller

v1.0.2(10y ago)0621MITPHP

Since Feb 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/pionl/laravel-support-controllers)[ Packagist](https://packagist.org/packages/pion/laravel-support-controllers)[ RSS](/packages/pion-laravel-support-controllers/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (1)

Traits
======

[](#traits)

Requirements
------------

[](#requirements)

- Laravel 5.1+ or 5.2+

Install
-------

[](#install)

Without Crumbs

```
composer require pion/laravel-support-controllers

```

With Crumbs

```
composer require pion/laravel-support-controllers
composer require atorscho/crumbs 2.2

```

URLTrait
--------

[](#urltrait)

Adds a new set of protected functions for the current controller. Enables getting the controller name with the namespace without the controllers namespace (for custom namespace overide the "getControllersRootNamespace" method). Also you can get current url, controllers action string for URL and controllers URL for given action.

### Methods

[](#methods)

```
getCurrentActionForName($action);
getCurrentActionURL($action, $parameters = []);
getControllerName();
getCurrentFullURL();

```

AbstractNavigationTrait
-----------------------

[](#abstractnavigationtrait)

Loads the URLTrait and enables creating a navigation for a resource controller (or any controller). Support creating current page link, current page link with a link to a list page (index page), models name and link to detail action (or edit and etc). Samples of url can be:

### Examples

[](#examples)

- set listTitle on construct (list page)
- the model must implement getName function (you can use NavigationModelTrait) to enable further functions in future

/sites - call the createNavigation() without title Result: list page

/sites/create - call the createNavigation("New page"); Result: list page -&gt; New page

/sites/1/edit - call the createNavigation("Edit", $object); Result: list page -&gt; name -&gt; Edit

/sites/1/edit - model has no detail view, call the createNavigation("Edit", $object); Result: list page -&gt; name

etc.

Customizations
--------------

[](#customizations)

You can change some properties:

- `$listModelAction` the controllers action name for a list
- `$detailModelAction` the controllers action name for the detail action (default is show, can be edit if not supported)
- `$listTitle` the title for the list

You can handle some states when the createNavigation is triggered:

### beforeAddingListNavigation($title = null, $modelToShow = null)

[](#beforeaddinglistnavigationtitle--null-modeltoshow--null)

Triggered before adding a list navigation. Called only if list page is supported

### beforeAddingModelActionNavigation($model, $title = null)

[](#beforeaddingmodelactionnavigationmodel-title--null)

Triggered before the model action is added (edit/show/etc)

### addCrumbNavigationToList

[](#addcrumbnavigationtolist)

Calls the addNavigation with list action

### addCrumbNavigationForModel

[](#addcrumbnavigationformodel)

Calls the addNavigation with given url and the model names, method must return bool if the navigation was added.

CrumbsNavigationTrait
---------------------

[](#crumbsnavigationtrait)

Implements the Crumbs navigation with AbstractNavigationTrait trait

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

3660d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pion-laravel-support-controllers/health.svg)

```
[![Health](https://phpackages.com/badges/pion-laravel-support-controllers/health.svg)](https://phpackages.com/packages/pion-laravel-support-controllers)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k91.3M282](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k199.2M1.2k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M163](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77018.2M122](/packages/laravel-mcp)[illuminate/routing

The Illuminate Routing package.

1239.0M2.9k](/packages/illuminate-routing)[laravel/surveyor

Static analysis tool for Laravel applications.

8690.3k12](/packages/laravel-surveyor)

PHPackages © 2026

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