really4you/laravel-optimistic

There is no license information available for the latest version (dev-master) of this package.

Laravel Concurrent updating for model.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/really4you/laravel-optimistic

dev-master 2021-09-03 02:27 UTC

This package is auto-updated.

Last update: 2025-12-29 03:40:47 UTC


README

$ composer require really4you/laravel-optimistic

Usage

Add Really4you\LaravelOptimistic\Optimistic trait to the model and set Optimistic attributes:

use Really4you\laravelOptimistic\Optimistic;

class GoodsPatent extends Model
{
    use Optimistic;
    
    /**
     * the name of the "optimistic" column.
     *
     * @var string
     */
    protected $versionAt = 'updating_column';
    
    <...>
}