Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/v6.0.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
ianriizky committed May 3, 2021
2 parents 9e2f6f3 + 9f1c479 commit 1a3d81d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to `laravel-tweak` will be documented in this file

## [Unreleased](https://github.com/ianriizky/laravel-tweak/compare/v6.0.4...feature/6.x)

## [v6.0.5 (2021-05-03)](https://github.com/ianriizky/laravel-tweak/compare/v6.0.4...v6.0.5)

### Fixed
- Use custom eloquent and query builder as docblock definition

## [v6.0.4 (2021-05-03)](https://github.com/ianriizky/laravel-tweak/compare/v6.0.3...v6.0.4)

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Eloquent/Docblock/BuildsQueries.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* @method static bool chunkById(int $count, callable $callback, string|null $column = null, string|null $alias = null) Chunk the results of a query by comparing IDs.
* @method static bool eachById(callable $callback, int $count = 1000, string|null $column = null, string|null $alias = null) Execute a callback over each item while chunking by id.
* @method static static|null first(array|string $columns = ['*']) Execute the query and get the first result.
* @method static mixed|\Illuminate\Database\Eloquent\Builder|\Ianrizky\Illuminate\Database\Query\Builder when(mixed $value, callable $callback, callable|null $default = null) Apply the callback's query changes if the given "value" is true.
* @method static mixed|\Illuminate\Database\Eloquent\Builder|\Ianrizky\Illuminate\Database\Query\Builder unless(mixed $value, callable $callback, callable|null $default = null) Apply the callback's query changes if the given "value" is false.
* @method static mixed|\Ianrizky\Illuminate\Database\Eloquent\Builder|\Ianrizky\Illuminate\Database\Query\Builder when(mixed $value, callable $callback, callable|null $default = null) Apply the callback's query changes if the given "value" is true.
* @method static mixed|\Ianrizky\Illuminate\Database\Eloquent\Builder|\Ianrizky\Illuminate\Database\Query\Builder unless(mixed $value, callable $callback, callable|null $default = null) Apply the callback's query changes if the given "value" is false.
*
* @see \Illuminate\Database\Concerns\BuildsQueries
*/
Expand Down
16 changes: 8 additions & 8 deletions src/Illuminate/Database/Eloquent/Docblock/CustomQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
namespace Ianrizky\Illuminate\Database\Eloquent\Docblock;

/**
* @method static \Illuminate\Database\Eloquent\Builder whereLike(string $column, mixed $value, string $boolean = 'and')
* @method static \Illuminate\Database\Eloquent\Builder orWhereLike(string $column, mixed $value)
* @method static \Illuminate\Database\Eloquent\Builder whereLikeEnd(string $column, mixed $value, string $boolean = 'and')
* @method static \Illuminate\Database\Eloquent\Builder orWhereLikeEnd(string $column, mixed $value)
* @method static \Illuminate\Database\Eloquent\Builder whereLikeStart(string $column, mixed $value, string $boolean = 'and')
* @method static \Illuminate\Database\Eloquent\Builder orWhereLikeStart(string $column, mixed $value)
* @method static \Illuminate\Database\Eloquent\Builder whereLikeAny(string $column, mixed $value, string $boolean = 'and')
* @method static \Illuminate\Database\Eloquent\Builder orWhereLikeAny(string $column, mixed $value)
* @method static \Ianrizky\Illuminate\Database\Eloquent\Builder whereLike(string $column, mixed $value, string $boolean = 'and')
* @method static \Ianrizky\Illuminate\Database\Eloquent\Builder orWhereLike(string $column, mixed $value)
* @method static \Ianrizky\Illuminate\Database\Eloquent\Builder whereLikeEnd(string $column, mixed $value, string $boolean = 'and')
* @method static \Ianrizky\Illuminate\Database\Eloquent\Builder orWhereLikeEnd(string $column, mixed $value)
* @method static \Ianrizky\Illuminate\Database\Eloquent\Builder whereLikeStart(string $column, mixed $value, string $boolean = 'and')
* @method static \Ianrizky\Illuminate\Database\Eloquent\Builder orWhereLikeStart(string $column, mixed $value)
* @method static \Ianrizky\Illuminate\Database\Eloquent\Builder whereLikeAny(string $column, mixed $value, string $boolean = 'and')
* @method static \Ianrizky\Illuminate\Database\Eloquent\Builder orWhereLikeAny(string $column, mixed $value)
*
* @see \Ianrizky\Illuminate\Database\Query\Builder
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Eloquent/Docblock/EloquentBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
* @method static \Ianrizky\Illuminate\Database\Eloquent\Builder with(mixed $relations) Set the relationships that should be eager loaded.
* @method static \Ianrizky\Illuminate\Database\Eloquent\Builder without(mixed $relations) Prevent the specified relations from being eager loaded.
* @method static static newModelInstance(array $attributes = []) Create a new instance of the model being queried.
* @method static \Illuminate\Database\Query\Builder getQuery() Get the underlying query builder instance.
* @method static \Ianrizky\Illuminate\Database\Query\Builder getQuery() Get the underlying query builder instance.
* @method static \Ianrizky\Illuminate\Database\Eloquent\Builder setQuery(\Illuminate\Database\Query\Builder $query) Set the underlying query builder instance.
* @method static \Illuminate\Database\Query\Builder toBase() Get a base query builder instance.
* @method static \Ianrizky\Illuminate\Database\Query\Builder toBase() Get a base query builder instance.
* @method static array getEagerLoads() Get the relationships being eagerly loaded.
* @method static \Ianrizky\Illuminate\Database\Eloquent\Builder setEagerLoads(array $eagerLoad) Set the relationships being eagerly loaded.
* @method static static getModel() Get the model instance being queried.
Expand Down

0 comments on commit 1a3d81d

Please sign in to comment.