PHPackages                             leuverink/blade-hints - 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. [Templating &amp; Views](/categories/templating)
4. /
5. leuverink/blade-hints

ActiveLibrary[Templating &amp; Views](/categories/templating)

leuverink/blade-hints
=====================

Easily spot missing authorization checks in Blade

2.0.0(9mo ago)313MITPHPPHP ^8.1CI passing

Since Aug 13Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/gwleuverink/blade-hints)[ Packagist](https://packagist.org/packages/leuverink/blade-hints)[ RSS](/packages/leuverink-blade-hints/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (11)Versions (6)Used By (0)

Blade Hints
===========

[](#blade-hints)

[![codestyle](https://github.com/gwleuverink/blade-hints/actions/workflows/codestyle.yml/badge.svg)](https://github.com/gwleuverink/blade-hints/actions/workflows/codestyle.yml)[![tests](https://github.com/gwleuverink/blade-hints/actions/workflows/tests.yml/badge.svg)](https://github.com/gwleuverink/blade-hints/actions/workflows/tests.yml)

Easily spot authorization checks in Laravel

[![screenshot](/resources/images/screenshot.jpg)](/resources/images/screenshot.jpg)

Features
--------

[](#features)

Mark usages of a variety of different Blade directives on your page, so you can easily spot missing authorization/auth/env checks. Especially helpful during review.

Supported directives:

- `@can`, `@cannot`, `@canany`
- `@env`, `@production`
- `@auth`, `@guest`

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

[](#installation)

```
composer require leuverink/blade-hints
```

Configuration
-------------

[](#configuration)

```
[
    'enabled' => env('BLADE_HINTS_ENABLED', app()->isLocal()),

    'authorization_directives' => true,
    'authorization_if_color' => '#fca5a5', // red-300
    'authorization_else_color' => '#d8b4fe', // purple-300

    'authentication_directives' => true,
    'authentication_if_color' => '#fca5a5', // red-300
    'authentication_else_color' => '#d8b4fe', // purple-300

    'environment_directives' => true,
    'environment_if_color' => '#fca5a5', // red-300

    'guest_directives' => true,
    'guest_if_color' => '#fca5a5', // red-300
]
```

Development
-----------

[](#development)

```
composer lint # run all linters
composer fix # run all fixers

composer analyze # run static analysis
composer baseline # generate static analysis baseline

composer test # run test suite
composer build # bundle all assets
```

License
-------

[](#license)

This package is open-source software licensed under the MIT license.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance61

Regular maintenance activity

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

4

Last Release

275d ago

Major Versions

1.1.1 → 2.0.02025-08-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/9531bf1fdbe178d3a5129b81e61b70be81359ebf10ce3f282705a8275b4bd31d?d=identicon)[gwleuverink](/maintainers/gwleuverink)

---

Top Contributors

[![gwleuverink](https://avatars.githubusercontent.com/u/17123491?v=4)](https://github.com/gwleuverink "gwleuverink (62 commits)")

---

Tags

bladelaravel

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/leuverink-blade-hints/health.svg)

```
[![Health](https://phpackages.com/badges/leuverink-blade-hints/health.svg)](https://phpackages.com/packages/leuverink-blade-hints)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[illuminate/view

The Illuminate View package.

13144.9M1.7k](/packages/illuminate-view)[moonshine/moonshine

Laravel administration panel

1.3k217.1k59](/packages/moonshine-moonshine)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

703141.0k7](/packages/tallstackui-tallstackui)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[livewire/blaze

A tool for optimizing Blade component performance by folding them into parent templates

688221.3k17](/packages/livewire-blaze)

PHPackages © 2026

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