@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Orkhanahmadov\EloquentRepository\Console; |
| 4 | 4 | |
| 5 | +use Illuminate\Console\GeneratorCommand; |
|
| 6 | +use Illuminate\Contracts\Filesystem\FileNotFoundException; |
|
| 5 | 7 | use Illuminate\Support\Str; |
| 6 | 8 | use InvalidArgumentException; |
| 7 | -use Illuminate\Console\GeneratorCommand; |
|
| 8 | 9 | use Symfony\Component\Console\Input\InputOption; |
| 9 | -use Illuminate\Contracts\Filesystem\FileNotFoundException; |
|
| 10 | 10 | |
| 11 | 11 | class RepositoryMakeCommand extends GeneratorCommand |
| 12 | 12 | { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | * |
| 115 | 115 | * @param int $perPage |
| 116 | 116 | * |
| 117 | - * @return Builder[]|Collection|mixed |
|
| 117 | + * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator |
|
| 118 | 118 | */ |
| 119 | 119 | public function paginate(int $perPage) |
| 120 | 120 | { |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | * |
| 271 | 271 | * @param int|string $modelId |
| 272 | 272 | * |
| 273 | - * @return bool|mixed|null |
|
| 273 | + * @return null|boolean |
|
| 274 | 274 | * @throws Exception |
| 275 | 275 | */ |
| 276 | 276 | public function findAndDelete($modelId) |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | * |
| 286 | 286 | * @param Model $model |
| 287 | 287 | * |
| 288 | - * @return bool|mixed|null |
|
| 288 | + * @return null|boolean |
|
| 289 | 289 | * @throws Exception |
| 290 | 290 | */ |
| 291 | 291 | public function delete($model) |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | * |
| 317 | 317 | * @param int|string $modelId |
| 318 | 318 | * |
| 319 | - * @return Builder|Builder[]|Collection|Model|null |
|
| 319 | + * @return Model |
|
| 320 | 320 | */ |
| 321 | 321 | public function findFromTrashed($modelId) |
| 322 | 322 | { |
@@ -2,19 +2,19 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Orkhanahmadov\EloquentRepository; |
| 4 | 4 | |
| 5 | -use Exception; |
|
| 6 | 5 | use BadMethodCallException; |
| 7 | -use Illuminate\Support\Arr; |
|
| 8 | -use Illuminate\Database\Eloquent\Model; |
|
| 9 | -use Illuminate\Database\Eloquent\Builder; |
|
| 6 | +use Exception; |
|
| 10 | 7 | use Illuminate\Config\Repository as Config; |
| 11 | -use Illuminate\Database\Eloquent\Collection; |
|
| 12 | 8 | use Illuminate\Contracts\Cache\Factory as Cache; |
| 13 | -use Illuminate\Database\Eloquent\ModelNotFoundException; |
|
| 14 | -use Orkhanahmadov\EloquentRepository\Repository\Criteria; |
|
| 15 | 9 | use Illuminate\Contracts\Container\BindingResolutionException; |
| 10 | +use Illuminate\Database\Eloquent\Builder; |
|
| 11 | +use Illuminate\Database\Eloquent\Collection; |
|
| 12 | +use Illuminate\Database\Eloquent\Model; |
|
| 13 | +use Illuminate\Database\Eloquent\ModelNotFoundException; |
|
| 14 | +use Illuminate\Support\Arr; |
|
| 16 | 15 | use Orkhanahmadov\EloquentRepository\Repository\Contracts\Cachable; |
| 17 | 16 | use Orkhanahmadov\EloquentRepository\Repository\Contracts\Repository; |
| 17 | +use Orkhanahmadov\EloquentRepository\Repository\Criteria; |
|
| 18 | 18 | |
| 19 | 19 | abstract class EloquentRepository implements Repository |
| 20 | 20 | { |