PackageScope
extends BaseScope
in package
Class PackageScope.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- __construct.
- apply() : mixed
- applyQueryBuilder() : void
- getPackages() : array<string|int, string>
- getPackages.
- getTable() : string
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- setPackages() : self
- setPackages.
- setTable() : self
- alias() : string
Properties
$packages
private
array<string|int, string>
$packages
$table
private
string
$table
Methods
__construct()
__construct.
public
__construct(string $table[, array<string|int, string> $packages = [] ]) : mixed
Parameters
- $table : string
- $packages : array<string|int, string> = []
apply()
public
apply(Builder $builder, Model $model) : mixed
Parameters
- $builder : Builder
- $model : Model
applyQueryBuilder()
public
applyQueryBuilder(Builder $builder) : void
Parameters
- $builder : Builder
getPackages()
getPackages.
public
getPackages() : array<string|int, string>
Return values
array<string|int, string>getTable()
public
getTable() : string
Return values
stringlikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringsetPackages()
setPackages.
public
setPackages([array<string|int, string> $packages = [] ]) : self
Parameters
- $packages : array<string|int, string> = []
Return values
selfsetTable()
public
setTable(string $table) : self
Parameters
- $table : string
Return values
selfalias()
protected
alias(string $table, string $column) : string
Parameters
- $table : string
- $column : string