Illuminate\Database\Query\Builder::lock PHP Method

lock() public method

Lock the selected rows in the table.
public lock ( boolean $value = true )
$value boolean
    public function lock($value = true)
    {
        $this->lock = $value;
        if ($this->lock) {
            $this->useWritePdo();
        }
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * 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);
 }