Eloquent::skip PHP Method

skip() public static method

Alias to set the "offset" value of the query.
public static skip ( integer $value ) : Builder | static
$value integer
return Illuminate\Database\Query\Builder | static
        public static function skip($value)
        {
            return \Illuminate\Database\Query\Builder::skip($value);
        }

Usage Example

コード例 #1
0
ファイル: ParseBaseController.php プロジェクト: malimu/baas
 /**
  * @param $limit
  * @param $skip
  */
 public function limit($limit, $skip = null)
 {
     if (!is_null($limit) and is_numeric($limit)) {
         $this->object = $this->object->take($limit);
     } else {
         $this->object = $this->object->take(100);
     }
     if (!is_null($skip) and is_numeric($skip)) {
         $this->object = $this->object->skip($skip);
     }
 }
All Usage Examples Of Eloquent::skip
Eloquent