Method | Description | |
---|---|---|
__construct ( |
||
castColumn ( string $column ) : string | Wrap a column and cast in pgsql. | |
columnSearch ( ) : void | Perform column search. | |
count ( ) : integer | Counts current query. | |
filter ( Closure $callback, boolean $globalSearch = false ) | Set auto filter off and run your own filter. | |
filtering ( ) : void | Perform global search. | |
make ( boolean $mDataSupport = false, boolean $orderFirst = false ) : Illuminate\Http\JsonResponse | Organizes works | |
ordering ( ) : void | Perform sorting of columns. | |
paging ( ) : void | Perform pagination | |
results ( ) : array | static[] | Get results | |
totalCount ( ) : integer | Count total items. |
Method | Description | |
---|---|---|
compileColumnQuery ( mixed $query, string | Closur\Closure $method, mixed $parameters, string $column, string $keyword ) | Perform filter column on selected field. | |
compileColumnSearch ( integer $i, mixed $column, string $keyword ) | Compile queries for column search. | |
compileQuerySearch ( mixed $query, string $column, string $keyword, string $relation = 'or' ) | Compile query builder where clause depending on configurations. | |
compileRelationSearch ( mixed $query, string $relation, string $column, string $keyword ) | Add relation query on global search. | |
getEagerLoads ( ) : array | Get eager loads keys if eloquent. | |
getNullsLastSql ( string $column, string $direction ) : string | Get NULLS LAST SQL. | |
init ( |
Initialize attributes. | |
joinEagerLoadedColumn ( string $relation, string $relationColumn ) : string | Join eager loaded relation and get the related column name. | |
parameterize ( ) : array | Build Query Builder Parameters. | |
prepareKeyword ( string $keyword ) : string | Prepare search keyword based on configurations. | |
regexColumnSearch ( mixed $column, string $keyword ) | Compile regex query column search. | |
wrap ( string $column ) : string | Wrap column with DB grammar. |
Method | Description | |
---|---|---|
getSearchKeyword ( integer $i, boolean $raw = false ) : string | Get proper keyword to use for search. | |
modelUseSoftDeletes ( ) : boolean | Check if model use SoftDeletes trait |
public __construct ( |
||
$builder | ||
$request |
public castColumn ( string $column ) : string | ||
$column | string | |
return | string |
protected getEagerLoads ( ) : array | ||
return | array |
protected parameterize ( ) : array | ||
return | array |
protected prepareKeyword ( string $keyword ) : string | ||
$keyword | string | |
return | string |
protected regexColumnSearch ( mixed $column, string $keyword ) | ||
$column | mixed | |
$keyword | string |