Download the PHP package sofa/model-locking without Composer
On this page you can find all versions of the php package sofa/model-locking. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sofa/model-locking
More information about sofa/model-locking
Files in sofa/model-locking
Download sofa/model-locking
More information about sofa/model-locking
Files in sofa/model-locking
Vendor sofa
Package model-locking
Short Description Pseudo pessimistic model locking with broadcasted events for Laravel Eloquent ORM.
License MIT
Package model-locking
Short Description Pseudo pessimistic model locking with broadcasted events for Laravel Eloquent ORM.
License MIT
Please rate this library. Is it a good library?
Informations about the package model-locking
Sofa/ModelLocking
Pseudo pessimistic model locking for the Eloquent ORM (Laravel 5.3+).
Installation
Package goes along with Laravel (Illuminate) versioning for your convenience:
Laravel / Illuminate 5.3+:
- require package:
composer require sofa/model-locking:"~5.3"
- if you're using Laravel 5.1 - 5.4, add to your
config/app.php
underproviders
:Sofa\ModelLocking\ServiceProvider::class,
,
if you're using Laravel 5.5+ the service provider will register itself automatically - publish package assets:
php artisan vendor:publish --provider="Sofa\ModelLocking\ServiceProvider"
- create model locks table by running
php artisan migrate
- add trait
use \Sofa\ModelLocking\Locking
to the model that should offer locking - OPTIONALLY customize package config in
config/model_locking.php
Usage
Basic example:
soon more in-depth info, meanwhile take a look at the specs:
Contribution
All contributions are welcome, PRs must be tested (using kahlan) and PSR-2 compliant.
All versions of model-locking with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
illuminate/database Version ^5.5|^6.0|^7.0
illuminate/queue Version ^5.5|^6.0|^7.0
illuminate/database Version ^5.5|^6.0|^7.0
illuminate/queue Version ^5.5|^6.0|^7.0
The package sofa/model-locking contains the following files
Loading the files please wait ....