Download the PHP package quarks/laravel-locking without Composer
On this page you can find all versions of the php package quarks/laravel-locking. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download quarks/laravel-locking
More information about quarks/laravel-locking
Files in quarks/laravel-locking
Download quarks/laravel-locking
More information about quarks/laravel-locking
Files in quarks/laravel-locking
Vendor quarks
Package laravel-locking
Short Description Easily implement optimistic Eloquent model locking feature to your Laravel app.
License MIT
Package laravel-locking
Short Description Easily implement optimistic Eloquent model locking feature to your Laravel app.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-locking
quarks/laravel-locking
Easily implement optimistic Eloquent model locking feature to your Laravel app.
Installation
Usage
In your migration classes, add the version column to your table as below:
Then add the LocksVersion
trait your model classes as follows:
In your blade templates, include the current lock version as part of the form using the lockInput
directive as below:
In your controllers, fill the lock version from request using below helper:
Your model update can now be simply protected from concurrent updates as shown above.
License
See LICENSE file.
All versions of laravel-locking with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
The package quarks/laravel-locking contains the following files
Loading the files please wait ....