jaybizzle / blade-protect
Protect parts of blade templates being edited by multiple users.
Installs: 2 658
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.1
Requires (Dev)
- larapack/dd: ^1.0
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-10-20 01:59:04 UTC
README
Prevent concurrent edits of the same resource by multiple users.
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
@protect('user-edit-form', $user->id) @ifprotected('user-edit-form', $user->id) <p>This user cannot be edited becuase another admin is already editing this user</p> @endprotected
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email mbeech@mark-beech.co.uk instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.