class BlogPost extends \Illuminate\Database\Eloquent\Model
{
use \Reshadman\OptimisticLocking\OptimisticLocking;
protected $lock = false;
}
class BlogPost extends \Illuminate\Database\Eloquent\Model
{
use \Reshadman\OptimisticLocking\OptimisticLocking;
/**
* Name of the lock version column.
*
* @return string
*/
protected static function lockVersionColumn()
{
return 'track_version';
}
}