PHPackages                             genealabs/laravel-authorization-addons - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. genealabs/laravel-authorization-addons

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

genealabs/laravel-authorization-addons
======================================

Additional helper methods and blade directives to help with more complex authorization queries.

13.0.0(1mo ago)66891[1 issues](https://github.com/mikebronner/laravel-authorization-addons/issues)[1 PRs](https://github.com/mikebronner/laravel-authorization-addons/pulls)MITPHPPHP ^8.2

Since Oct 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mikebronner/laravel-authorization-addons)[ Packagist](https://packagist.org/packages/genealabs/laravel-authorization-addons)[ GitHub Sponsors](https://github.com/mikebronner)[ RSS](/packages/genealabs-laravel-authorization-addons/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (15)Versions (14)Used By (0)

Authorization Addons for Laravel
================================

[](#authorization-addons-for-laravel)

[![Authorization Addons for Laravel masthead image.](https://repository-images.githubusercontent.com/105207145/2dde3980-f298-11e9-8cd8-1eb8c187de10)](https://repository-images.githubusercontent.com/105207145/2dde3980-f298-11e9-8cd8-1eb8c187de10)

[![Join the chat at https://gitter.im/GeneaLabs/laravel-authorization-addons](https://camo.githubusercontent.com/250515817c201b946cae6c52e928a0da692054c0806409c900851fea639d46ae/68747470733a2f2f6261646765732e6769747465722e696d2f47656e65614c6162732f6c61726176656c2d617574686f72697a6174696f6e2d6164646f6e732e737667)](https://gitter.im/GeneaLabs/laravel-authorization-addons?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Travis](https://camo.githubusercontent.com/38433bf60fc93d4201452ba70cae2b3f157774685ef489156a738a7c87d74d50/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f47656e65614c6162732f6c61726176656c2d617574686f72697a6174696f6e2d6164646f6e732e737667)](https://travis-ci.org/GeneaLabs/laravel-authorization-addons)[![SensioLabs Insight](https://camo.githubusercontent.com/f016896ca36e475e7224a332d61844a3a5a8db11604d7673ccd5d14caaaa6411/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f64333832343035352d333962302d343230362d623434652d3830313830373163633665662e737667)](https://insight.sensiolabs.com/projects/d3824055-39b0-4206-b44e-8018071cc6ef)[![Scrutinizer](https://camo.githubusercontent.com/ddb8b8946979f46f7f469ae197a9eb1d2e99800dc49c316ad2d46e4d878fd8de/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f47656e65614c6162732f6c61726176656c2d617574686f72697a6174696f6e2d6164646f6e732e737667)](https://scrutinizer-ci.com/g/GeneaLabs/laravel-authorization-addons)[![Coveralls](https://camo.githubusercontent.com/a5364203910b1cbedb94a0c61e3e99951bd3860adfc3776d2702f29845d992f2/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f47656e65614c6162732f6c61726176656c2d617574686f72697a6174696f6e2d6164646f6e732e737667)](https://coveralls.io/github/GeneaLabs/laravel-authorization-addons)[![GitHub (pre-)release](https://camo.githubusercontent.com/72686932c6a22df0c84b071f704bd7cbcffedd4be7a26be3266de2f8bc41c192/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f47656e65614c6162732f6c61726176656c2d617574686f72697a6174696f6e2d6164646f6e732f616c6c2e737667)](https://github.com/GeneaLabs/laravel-authorization-addons)[![Packagist](https://camo.githubusercontent.com/d309f605903c202bb286c92b24bbd12657eed4c2505583479a17eef3f6a2a624/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f47656e65614c6162732f6c61726176656c2d617574686f72697a6174696f6e2d6164646f6e732e737667)](https://packagist.org/packages/genealabs/laravel-authorization-addons)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/GeneaLabs/laravel-authorization-addons/master/LICENSE)

Additional helper methods and blade directives to help with more complex authorization queries.

Usage
-----

[](#usage)

### `@canAny (iterable $abilities, $model)`

[](#canany-iterable-abilities-model)

Checks if any one of the abilities is authorized for the given model.

```
@canAny (['create', 'edit'], $post)
```

### `@canEvery (iterable $abilities, string $model)`

[](#canevery-iterable-abilities-string-model)

Checks if all of the abilities are authorized for the given model.

```
@canEvery (['create', 'edit', 'remove'], $post)
```

### `@elseCanAny (iterable $abilities, string $model)`

[](#elsecanany-iterable-abilities-string-model)

Same as `@canAny`, but allowing for multiple conditionals when checking authorizations.

### `@elseCanEvery (iterable $abilities, string $model)`

[](#elsecanevery-iterable-abilities-string-model)

Same as `@canEvery`, but allowing for multiple conditionals when checking authorizations.

### Inverse Methods:

[](#inverse-methods)

The following inverse methods are also available, along with the same signatures as their counterparts:

- `@cannotAny`
- `@cannotEvery`
- `@elseCannotAny`
- `@elseCannotEvery`

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance48

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

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

Recently: every ~682 days

Total

9

Last Release

43d ago

Major Versions

0.2.0 → 1.0.02019-08-29

1.0.1 → 13.0.02026-03-30

PHP version history (4 changes)0.1.0PHP &gt;=7.0.0

0.2.0PHP &gt;=7.1.3

1.0.0PHP &gt;=7.2

13.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/4374bfc5d8583aa8c25c5080f1fcfaf09027822f47724ba6b64abc564945c80a?d=identicon)[mikebronner](/maintainers/mikebronner)

---

Top Contributors

[![mikebronner](https://avatars.githubusercontent.com/u/1791050?v=4)](https://github.com/mikebronner "mikebronner (27 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/genealabs-laravel-authorization-addons/health.svg)

```
[![Health](https://phpackages.com/badges/genealabs-laravel-authorization-addons/health.svg)](https://phpackages.com/packages/genealabs-laravel-authorization-addons)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2011.0k](/packages/alajusticia-laravel-logins)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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