PHPackages                             hadefication/trail - 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. hadefication/trail

ActiveLibrary

hadefication/trail
==================

Your package description here

0.1.1(7y ago)05MITJavaScript

Since Mar 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hadefication/trail)[ Packagist](https://packagist.org/packages/hadefication/trail)[ RSS](/packages/hadefication-trail/feed)WikiDiscussions master Synced 3d ago

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

Trail
=====

[](#trail)

This package will expose a `@trail` blade directive that you can include into your master blade or layout file. This blade directive exposes a `Trail` JavaScript object that contains config and the collection of named routes that your application has. The directive also exposes a helper method named `route` for convenience, if you know what I mean.

Usage
-----

[](#usage)

1. Add this package to your Laravel application by running `composer require hadefication/trail`
2. Include `@trail` to your master blade or your main layout file.
3. Start using `route('route.name')` in your JavaScript to access route URLs.
4. That's all about it! Noice eh!?

### Configs

[](#configs)

The package comes with a nifty config file where you can customize how the package will behave.

- `excludeNamedRoutesToDirective`: as the config suggests, this config, if set to `true`, it will exclude the routes collection dump in the `Trail` object.
- `excludeRouteHelperMethodToDirective`: yep, if set to `true`, it will exclude the `route` helper method in the JavaScript export done in `@trail` directive.
- `excludeRoutes`: This config accepts an array of route names or route URI path that you wish to be excluded in the route collection dump added in Trail.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

2918d ago

### Community

Maintainers

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

---

Top Contributors

[![hadefication](https://avatars.githubusercontent.com/u/6673244?v=4)](https://github.com/hadefication "hadefication (11 commits)")

### Embed Badge

![Health badge](/badges/hadefication-trail/health.svg)

```
[![Health](https://phpackages.com/badges/hadefication-trail/health.svg)](https://phpackages.com/packages/hadefication-trail)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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