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

offset() public method

Set the "offset" value of the query.
public offset ( integer $value )
$value integer
    public function offset($value)
    {
        $property = $this->unions ? 'unionOffset' : 'offset';
        $this->{$property} = max(0, $value);
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @param $value
  * @return $this
  */
 public function applyOffset($value)
 {
     /**
      * Save to conditons.
      */
     $this->addCondition('offset', $value);
     $this->model = $this->model->offset($value);
     return $this;
 }
All Usage Examples Of Illuminate\Database\Query\Builder::offset