PHPackages                             jaybizzle/blade-protect - 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. jaybizzle/blade-protect

ActiveLibrary

jaybizzle/blade-protect
=======================

Protect parts of blade templates being edited by multiple users.

02.7kPHP

Since Mar 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/JayBizzle/blade-protect)[ Packagist](https://packagist.org/packages/jaybizzle/blade-protect)[ RSS](/packages/jaybizzle-blade-protect/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Blade Protect
=============

[](#blade-protect)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b95ece91df7ad7ad755a669cc10b4a2e1d45fa558c966f65aa537cc0be20ea97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a617962697a7a6c652f626c6164652d70726f746563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jaybizzle/blade-protect)[![Build Status](https://camo.githubusercontent.com/2216689d388c93bdb26a7f58201eeda0b90d9cb005e5109a9cb4d5fee65e6ff0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a617962697a7a6c652f626c6164652d70726f746563742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/jaybizzle/blade-protect)[![Quality Score](https://camo.githubusercontent.com/432bd00a7190ca7a4b8eebf78472b2c8a12ab3881ca2a0c0bf94d6d734e8bf89/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a617962697a7a6c652f626c6164652d70726f746563742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jaybizzle/blade-protect)[![Total Downloads](https://camo.githubusercontent.com/aa214771e66cb2cfa3e947a202188cd13c9dde7bbd3a5b94f709877e23e14a3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a617962697a7a6c652f626c6164652d70726f746563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jaybizzle/blade-protect)

Prevent concurrent edits of the same resource by multiple users.

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

[](#installation)

You can install the package via composer:

```
composer require jaybizzle/blade-protect
```

```
php artisan vendor:publish --provider="Jaybizzle\BladeProtect\BladeProtectServiceProvider" --tag="migrations"

```

After the migration has been published you can create the `protected` table by running the migrations:

```
php artisan migrate

```

```
php artisan vendor:publish --provider="Jaybizzle\BladeProtect\BladeProtectServiceProvider" --tag="public" --force

```

Usage
-----

[](#usage)

```
@protect('user-edit-form', $user->id)

@ifprotected('user-edit-form', $user->id)
    This user cannot be edited becuase another admin is already editing this user
@endprotected
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mark Beech](https://github.com/JayBizzle)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 88.5% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/340752?v=4)[Mark Beech](/maintainers/JayBizzle)[@JayBizzle](https://github.com/JayBizzle)

---

Top Contributors

[![JayBizzle](https://avatars.githubusercontent.com/u/340752?v=4)](https://github.com/JayBizzle "JayBizzle (23 commits)")[![MaxGiting](https://avatars.githubusercontent.com/u/9828591?v=4)](https://github.com/MaxGiting "MaxGiting (3 commits)")

### Embed Badge

![Health badge](/badges/jaybizzle-blade-protect/health.svg)

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

PHPackages © 2026

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