src/Leevel/Database/Condition.php
public function forPage(int $page, int $perPage = 15): self
    {
        return $this->limit(($page - 1) * $perPage, $perPage);
    }
public function forPage(int $page, int $perPage = 15): self
    {
        return $this->limit(($page - 1) * $perPage, $perPage);
    }
根据分页设置条件.

@param int $page
@param int $perPage

@return $this