Свойство | Type | Description | |
---|---|---|---|
$data | array | ||
$model | Eloquent model instance of the grid model. | ||
$perPage | * 20 items per page as default. | ||
$queries | array | Array of queries of the eloquent model. | |
$sort | array | Sort parameters of the model. |
Méthode | Description | |
---|---|---|
__call ( $method, $arguments ) | ||
__construct ( |
Create a new grid model instance. | |
__get ( $key ) | ||
addConditions ( array $conditions ) : void | Add conditions to grid model. | |
buildData ( ) : array | Build. | |
eloquent ( ) : |
Get the eloquent model of the grid model. | |
getTable ( ) : string | Get table of the model. |
Méthode | Description | |
---|---|---|
findQueryByMethod ( $method ) : static | Find query by method name. | |
get ( ) | ||
joinParameters ( Illuminate\Database\Eloquent\Relations\Relation $relation ) : array | Build join parameters. | |
setPaginate ( ) : void | Set the grid paginate. | |
setRelationSort ( string $column ) : void | Set relation sort. | |
setSort ( ) : void | Set the grid sort. |
public __construct ( |
||
$model |
public addConditions ( array $conditions ) : void | ||
$conditions | array | |
Résultat | void |
public eloquent ( ) : |
||
Résultat |
protected findQueryByMethod ( $method ) : static | ||
$method | ||
Résultat | static |
protected joinParameters ( Illuminate\Database\Eloquent\Relations\Relation $relation ) : array | ||
$relation | Illuminate\Database\Eloquent\Relations\Relation | |
Résultat | array |
protected setPaginate ( ) : void | ||
Résultat | void |
protected setRelationSort ( string $column ) : void | ||
$column | string | |
Résultat | void |
protected Model,Illuminate\Database\Eloquent $model | ||
Résultat |
protected array $queries | ||
Résultat | array |