Property | Type | Description | |
---|---|---|---|
$container | Illuminate\Contracts\Container\Container | The IoC container instance. | |
$limit | integer | The "limit" value of the query. | |
$model | string | The repository model. | |
$offset | integer | The "offset" value of the query. | |
$orderBy | array | The column to order results by. | |
$relations | array | The relations to eager load on query execution. | |
$repositoryId | string | The repository identifier. | |
$where | array | The query where clauses. | |
$whereIn | array | The query whereIn clauses. | |
$whereNotIn | array | The query whereNotIn clauses. |
Method | Description | |
---|---|---|
__call ( string $method, array $parameters ) : mixed | Dynamically pass missing methods to the model. | |
__callStatic ( $method, $parameters ) : mixed | Dynamically pass missing static methods to the model. | |
getContainer ( string | null $service = null ) : object | Get the IoC container instance or any of it's services. | |
getModel ( ) : string | Get the repository model. | |
getRepositoryId ( ) : string | Get the repository identifier. | |
limit ( integer $limit ) | Set the "limit" value of the query. | |
offset ( integer $offset ) | Set the "offset" value of the query. | |
orderBy ( string $attribute, string $direction = 'asc' ) | Add an "order by" clause to the query. | |
setContainer ( Illuminate\Contracts\Container\Container $container ) | Set the IoC container instance. | |
setModel ( string $model ) | Set the repository model. | |
setRepositoryId ( string $repositoryId ) | Set the repository identifier. | |
where ( string $attribute, string $operator = null, mixed $value = null, string $boolean = 'and' ) | Add a basic where clause to the query. | |
whereIn ( string $attribute, mixed $values, string $boolean = 'and', boolean $not = false ) | Add a "where in" clause to the query. | |
whereNotIn ( string $attribute, mixed $values, string $boolean = 'and' ) | Add a "where not in" clause to the query. | |
with ( array $relations ) | Set the relationships that should be eager loaded. |
Method | Description | |
---|---|---|
executeCallback ( string $class, string $method, array $args, Closure $closure ) : mixed | Execute given callback and return the result. | |
prepareQuery ( object $model ) : object | Prepare query. | |
resetRepository ( ) | Reset repository to it's defaults. |
public static __callStatic ( $method, $parameters ) : mixed | ||
$method | ||
$parameters | ||
return | mixed |
public getRepositoryId ( ) : string | ||
return | string |
protected prepareQuery ( object $model ) : object | ||
$model | object | |
return | object |
public setContainer ( Illuminate\Contracts\Container\Container $container ) | ||
$container | Illuminate\Contracts\Container\Container |
public setRepositoryId ( string $repositoryId ) | ||
$repositoryId | string |
protected Container,Illuminate\Contracts\Container $container | ||
return | Illuminate\Contracts\Container\Container |
protected array $orderBy | ||
return | array |
protected array $relations | ||
return | array |
protected string $repositoryId | ||
return | string |
protected array $whereNotIn | ||
return | array |