Bånder

RecursiveBaseBuilder extends Builder
in package

Table of Contents

Methods

paginate()  : mixed
selectFields()  : $this
Select fields safely.
withRelations()  : $this
Apply relations safely.
paginator()  : mixed

Methods

paginate()

public paginate([mixed $perPage = null ][, mixed $columns = ['*'] ][, mixed $pageName = 'page' ][, mixed $page = null ][, mixed $total = null ]) : mixed
Parameters
$perPage : mixed = null
$columns : mixed = ['*']
$pageName : mixed = 'page'
$page : mixed = null
$total : mixed = null

selectFields()

Select fields safely.

public selectFields(array<string|int, mixed>|null $allowedFields, string|null $fields) : $this
Parameters
$allowedFields : array<string|int, mixed>|null
$fields : string|null
Return values
$this

withRelations()

Apply relations safely.

public withRelations(array<string|int, mixed>|null $allowedRelations, string|null $relations) : $this
Parameters
$allowedRelations : array<string|int, mixed>|null
$relations : string|null
Return values
$this

paginator()

protected paginator(mixed $items, mixed $total, mixed $perPage, mixed $currentPage, mixed $options) : mixed
Parameters
$items : mixed
$total : mixed
$perPage : mixed
$currentPage : mixed
$options : mixed

        
On this page

Search results