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

lockForUpdate() public method

Lock the selected rows in the table for updating.
public lockForUpdate ( ) : Builder
return Builder
    public function lockForUpdate()
    {
        return $this->lock(true);
    }

Usage Example

Example #1
0
 /**
  * Lock the selected rows in the table for updating.
  *
  * @return \Illuminate\Database\Query\Builder 
  * @static 
  */
 public static function lockForUpdate()
 {
     return \Illuminate\Database\Query\Builder::lockForUpdate();
 }