public function lock($value = true) { $this->lock = $value; if ($this->lock) { $this->useWritePdo(); } return $this; }
/** * Lock the selected rows in the table. * * @param bool $value * @return $this * @static */ public static function lock($value = true) { return \Illuminate\Database\Query\Builder::lock($value); }