repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/Options/ClauseOptions.php
src/Query/Options/ClauseOptions.php
<?php namespace PDPhilip\Elasticsearch\Query\Options; /** * @method $this analyzer(string $analyzer) MatchQuery * @method $this autoGenerateSynonymsPhraseQuery(bool $value) MatchQuery * @method $this boost(float|int $value) MatchQuery * @method $this fuzziness(mixed $value) MatchQuery * @method $this maxExpansio...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/DSL/DslFactory.php
src/Query/DSL/DslFactory.php
<?php namespace PDPhilip\Elasticsearch\Query\DSL; class DslFactory { // ---------------------------------------------------------------------- // Index // ---------------------------------------------------------------------- public static function indexOperation(string $index, mixed $id = null, arra...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/DSL/QueryCompiler.php
src/Query/DSL/QueryCompiler.php
<?php namespace PDPhilip\Elasticsearch\Query\DSL; // @internal class QueryCompiler { protected array $query = []; protected array $bool = []; protected int $clauses = 0; protected array $lastClause = []; public function setAnd($clause): void { $this->_attachMust($clause); } ...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Query/DSL/DslBuilder.php
src/Query/DSL/DslBuilder.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Query\DSL; use RuntimeException; class DslBuilder { protected array $dsl = []; protected array $path = []; public static function make(): self { return new static; } // ------------------------------------------------...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Contracts/ArrayStore.php
src/Contracts/ArrayStore.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Contracts; interface ArrayStore { /** * Add an item to the repository. * * @return $this */ public function add(string $key, mixed $value): static; /** * Retrieve all the items. * * @return array<string, m...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Pagination/SearchAfterPaginator.php
src/Pagination/SearchAfterPaginator.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Pagination; use Illuminate\Pagination\Cursor; use Illuminate\Pagination\CursorPaginator; use Illuminate\Support\Collection; use PDPhilip\Elasticsearch\Eloquent\Model; class SearchAfterPaginator extends CursorPaginator { /** * @param Model $i...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Data/QueryMeta.php
src/Data/QueryMeta.php
<?php namespace PDPhilip\Elasticsearch\Data; final class QueryMeta { protected string $index = ''; protected string $query = ''; protected bool $success = false; protected bool $timed_out = false; protected int $took = -1; protected int $total = -1; protected int $hits = -1; pro...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Data/ModelMeta.php
src/Data/ModelMeta.php
<?php namespace PDPhilip\Elasticsearch\Data; use Illuminate\Support\Arr; final class ModelMeta { protected string $recordIndex = ''; protected string $table = ''; protected string $tablePrefix = ''; protected string $tableSuffix = ''; protected mixed $score = ''; protected array $highlig...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Data/MetaDTO.php
src/Data/MetaDTO.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Data; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Arr; use PDPhilip\Elasticsearch\Traits\Makeable; class MetaDTO implements Arrayable { use Makeable; protected array $result; public function __construct(array $resul...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Laravel/v12/Schema/BuilderCompatibility.php
src/Laravel/v12/Schema/BuilderCompatibility.php
<?php namespace PDPhilip\Elasticsearch\Laravel\v12\Schema; use Closure; use PDPhilip\Elasticsearch\Schema\Blueprint; trait BuilderCompatibility { /** * {@inheritDoc} */ protected function createBlueprint($table, ?Closure $callback = null): Blueprint { return new Blueprint($this->connect...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Laravel/v12/Schema/GrammarCompatibility.php
src/Laravel/v12/Schema/GrammarCompatibility.php
<?php namespace PDPhilip\Elasticsearch\Laravel\v12\Schema; use PDPhilip\Elasticsearch\Schema\Blueprint; trait GrammarCompatibility { private function createBlueprint(Blueprint $blueprint): Blueprint { return new Blueprint($blueprint->getConnection(), ''); } }
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Laravel/v12/Schema/BlueprintCompatibility.php
src/Laravel/v12/Schema/BlueprintCompatibility.php
<?php namespace PDPhilip\Elasticsearch\Laravel\v12\Schema; trait BlueprintCompatibility { public function getConnection() { return $this->connection; } public function build(): void { $connection = $this->connection; $grammar = $this->grammar; foreach ($this->toDSL...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Laravel/v12/Connection/ConnectionCompatibility.php
src/Laravel/v12/Connection/ConnectionCompatibility.php
<?php namespace PDPhilip\Elasticsearch\Laravel\v12\Connection; use PDPhilip\Elasticsearch\Query; use PDPhilip\Elasticsearch\Schema; trait ConnectionCompatibility { /** * @return Schema\Grammars\Grammar */ public function getSchemaGrammar() { return new Schema\Grammars\Grammar($this); ...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Laravel/Compatibility/Schema/BuilderCompatibility.php
src/Laravel/Compatibility/Schema/BuilderCompatibility.php
<?php namespace PDPhilip\Elasticsearch\Laravel\Compatibility\Schema; use PDPhilip\Elasticsearch\Laravel\v11\Schema\BuilderCompatibility as BuilderCompatibility11; use PDPhilip\Elasticsearch\Laravel\v12\Schema\BuilderCompatibility as BuilderCompatibility12; use PDPhilip\Elasticsearch\Utils\Helpers; $laravelVersion = ...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Laravel/Compatibility/Schema/GrammarCompatibility.php
src/Laravel/Compatibility/Schema/GrammarCompatibility.php
<?php namespace PDPhilip\Elasticsearch\Laravel\Compatibility\Schema; use PDPhilip\Elasticsearch\Laravel\v11\Schema\GrammarCompatibility as GrammarCompatibility11; use PDPhilip\Elasticsearch\Laravel\v12\Schema\GrammarCompatibility as GrammarCompatibility12; use PDPhilip\Elasticsearch\Utils\Helpers; $laravelVersion = ...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Laravel/Compatibility/Schema/BlueprintCompatibility.php
src/Laravel/Compatibility/Schema/BlueprintCompatibility.php
<?php namespace PDPhilip\Elasticsearch\Laravel\Compatibility\Schema; use PDPhilip\Elasticsearch\Laravel\v11\Schema\BlueprintCompatibility as BlueprintCompatibility11; use PDPhilip\Elasticsearch\Laravel\v12\Schema\BlueprintCompatibility as BlueprintCompatibility12; use PDPhilip\Elasticsearch\Utils\Helpers; $laravelVe...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Laravel/Compatibility/Connection/ConnectionCompatibility.php
src/Laravel/Compatibility/Connection/ConnectionCompatibility.php
<?php namespace PDPhilip\Elasticsearch\Laravel\Compatibility\Connection; use PDPhilip\Elasticsearch\Laravel\v11\Connection\ConnectionCompatibility as ConnectionCompatibility11; use PDPhilip\Elasticsearch\Laravel\v12\Connection\ConnectionCompatibility as ConnectionCompatibility12; use PDPhilip\Elasticsearch\Utils\Help...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Laravel/v11/Schema/BuilderCompatibility.php
src/Laravel/v11/Schema/BuilderCompatibility.php
<?php namespace PDPhilip\Elasticsearch\Laravel\v11\Schema; use Closure; use PDPhilip\Elasticsearch\Schema\Blueprint; trait BuilderCompatibility { /** * {@inheritDoc} */ protected function createBlueprint($table, ?Closure $callback = null): Blueprint { return new Blueprint($table, $callb...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Laravel/v11/Schema/GrammarCompatibility.php
src/Laravel/v11/Schema/GrammarCompatibility.php
<?php namespace PDPhilip\Elasticsearch\Laravel\v11\Schema; use PDPhilip\Elasticsearch\Schema\Blueprint; trait GrammarCompatibility { private function createBlueprint(Blueprint $blueprint): Blueprint { // @phpstan-ignore-next-line return new Blueprint(''); } }
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Laravel/v11/Schema/BlueprintCompatibility.php
src/Laravel/v11/Schema/BlueprintCompatibility.php
<?php namespace PDPhilip\Elasticsearch\Laravel\v11\Schema; use PDPhilip\Elasticsearch\Connection; use PDPhilip\Elasticsearch\Schema\Grammars\Grammar; trait BlueprintCompatibility { // @phpstan-ignore-next-line public function build(Connection|\Illuminate\Database\Connection|null $connection = null, Grammar|\...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Laravel/v11/Connection/ConnectionCompatibility.php
src/Laravel/v11/Connection/ConnectionCompatibility.php
<?php namespace PDPhilip\Elasticsearch\Laravel\v11\Connection; use PDPhilip\Elasticsearch\Query; use PDPhilip\Elasticsearch\Schema; trait ConnectionCompatibility { /** * @return Schema\Grammars\Grammar */ public function getSchemaGrammar() { // @phpstan-ignore-next-line return n...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Eloquent/ElasticCollection.php
src/Eloquent/ElasticCollection.php
<?php namespace PDPhilip\Elasticsearch\Eloquent; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Database\Eloquent\Collection; use PDPhilip\Elasticsearch\Data\MetaDTO; use PDPhilip\Elasticsearch\Data\QueryMeta; use PDPhilip\Elasticsearch\Eloquent\Model as TModel; /** * @template TKey of array-key * @tem...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Eloquent/GeneratesElasticIds.php
src/Eloquent/GeneratesElasticIds.php
<?php namespace PDPhilip\Elasticsearch\Eloquent; use Illuminate\Database\Eloquent\Concerns\HasUuids; use PDPhilip\Elasticsearch\Utils\TimeBasedUUIDGenerator; trait GeneratesElasticIds { use HasUuids; public function initializeGeneratesElasticIds() { $this->generatesUniqueIds = true; } p...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Eloquent/Builder.php
src/Eloquent/Builder.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Eloquent; use Closure; use Exception; use Illuminate\Container\Container; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Database\Eloquent\Builder as BaseEloquentBuilder; use Illuminate\Pagination\Cursor; use Illuminate\Pa...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Eloquent/GeneratesUuids.php
src/Eloquent/GeneratesUuids.php
<?php namespace PDPhilip\Elasticsearch\Eloquent; use Illuminate\Database\Eloquent\Concerns\HasUuids; use PDPhilip\Elasticsearch\Utils\Helpers; trait GeneratesUuids { use HasUuids; public function initializeGeneratesUuids() { $this->generatesUniqueIds = true; } public function newUniqueI...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Eloquent/SoftDeletes.php
src/Eloquent/SoftDeletes.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Eloquent; trait SoftDeletes { use \Illuminate\Database\Eloquent\SoftDeletes; /** * {@inheritdoc} */ public function getQualifiedDeletedAtColumn(): string { return $this->getDeletedAtColumn(); } /** * TODO:...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Eloquent/DynamicIndex.php
src/Eloquent/DynamicIndex.php
<?php namespace PDPhilip\Elasticsearch\Eloquent; use PDPhilip\Elasticsearch\Exceptions\LogicException; /** * Trait DynamicIndex * * @mixin Model */ trait DynamicIndex { public function __construct() { parent::__construct(); $this->setSuffix('*'); } /** * Set the table suffix...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Eloquent/HybridRelations.php
src/Eloquent/HybridRelations.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Eloquent; use Illuminate\Support\Str; use PDPhilip\Elasticsearch\Relations\BelongsTo; use PDPhilip\Elasticsearch\Relations\BelongsToMany; use PDPhilip\Elasticsearch\Relations\HasMany; use PDPhilip\Elasticsearch\Relations\HasOne; use PDPhilip\Elasticsear...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Eloquent/Model.php
src/Eloquent/Model.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Eloquent; use Illuminate\Database\Eloquent\Model as BaseModel; use PDPhilip\Elasticsearch\Data\ModelMeta; /** * @property object $searchHighlights * @property array $searchHighlightsAsArray * @property object $withHighlights */ abstract class Model...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Eloquent/ElasticsearchModel.php
src/Eloquent/ElasticsearchModel.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Eloquent; use DateTimeInterface; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Support\Arr; use Illuminate\Support\Carbon; use Illuminate\Support\Str; use PDPhilip\Elasticsearch\Connection;...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/src/Eloquent/Docs/ModelDocs.php
src/Eloquent/Docs/ModelDocs.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Eloquent\Docs; use Illuminate\Contracts\Pagination\LengthAwarePaginator; use Illuminate\Pagination\Cursor; use PDPhilip\Elasticsearch\Eloquent\Builder; use PDPhilip\Elasticsearch\Eloquent\ElasticCollection; use PDPhilip\Elasticsearch\Eloquent\Model; use...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/QueryBuilderMetricsAggregationTest.php
tests/QueryBuilderMetricsAggregationTest.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\DB; use PDPhilip\Elasticsearch\Tests\Models\Item; use PDPhilip\Elasticsearch\Tests\Models\User; beforeEach(function () { User::executeSchema(); Item::executeSchema(); DB::table('items')->insert([ ['name' => 'knife', 'type' => 'sharp',...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/ReindexTest.php
tests/ReindexTest.php
<?php use Illuminate\Support\Facades\DB; use PDPhilip\Elasticsearch\Exceptions\QueryException; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; use PDPhilip\Elasticsearch\Tests\Factories\ProductFactory; use PDPhilip\Elasticsearch\Tests\Models\Product; it('re-indexs data', functio...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/RelationsTest.php
tests/RelationsTest.php
<?php declare(strict_types=1); use Illuminate\Database\Eloquent\Collection; use Illuminate\Support\Str; use PDPhilip\Elasticsearch\Tests\Models\Address; use PDPhilip\Elasticsearch\Tests\Models\Book; use PDPhilip\Elasticsearch\Tests\Models\Client; use PDPhilip\Elasticsearch\Tests\Models\Group; use PDPhilip\Elasticsear...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
true
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/PropertyTest.php
tests/PropertyTest.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Tests\Models\HiddenAnimal; beforeEach(function () { HiddenAnimal::executeSchema(); }); it('can hide certain properties', function () { HiddenAnimal::create([ 'name' => 'Sheep', 'country' => 'Ireland', 'can_be_eaten' => true, ...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/HybridRelationsTest.php
tests/HybridRelationsTest.php
<?php declare(strict_types=1); use Illuminate\Database\SQLiteConnection; use PDPhilip\Elasticsearch\Tests\Models\Book; use PDPhilip\Elasticsearch\Tests\Models\Experience; use PDPhilip\Elasticsearch\Tests\Models\Label; use PDPhilip\Elasticsearch\Tests\Models\Role; use PDPhilip\Elasticsearch\Tests\Models\Skill; use PDP...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/QueryBuilderBucketAggregationTest.php
tests/QueryBuilderBucketAggregationTest.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\DB; use PDPhilip\Elasticsearch\Tests\Models\Birthday; use PDPhilip\Elasticsearch\Tests\Models\Item; use PDPhilip\Elasticsearch\Tests\Models\User; beforeEach(function () { User::executeSchema(); Item::executeSchema(); Birthday::executeSchema();...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/CreateOpTypeTest.php
tests/CreateOpTypeTest.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Exceptions\BulkInsertQueryException; use PDPhilip\Elasticsearch\Tests\Models\User; beforeEach(function () { User::executeSchema(); }); it('creates a document with createOnly and rejects duplicates', function () { $id = 'dataset:check-1:2025-01-01T00:...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Pest.php
tests/Pest.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Tests\TestCase; uses(TestCase::class)->in(__DIR__);
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/ExceptionTest.php
tests/ExceptionTest.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\DB; use PDPhilip\Elasticsearch\Exceptions\QueryException; use PDPhilip\Elasticsearch\Tests\Models\PageHit; // Set up the database schema before each test beforeEach(function () { PageHit::executeSchema(); }); it('tests first or fail', function () { ...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/LimitTest.php
tests/LimitTest.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Product; beforeEach(function () { Product::executeSchema(); Product::insert([ ['product' => 'chocolate', 'price' => 5], ['product' => 'pumpkin', 'price' => 30], ['product' => 'apple', 'price' => 10], ...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/ConnectionTest.php
tests/ConnectionTest.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\DB; use PDPhilip\Elasticsearch\Connection; use PDPhilip\Elasticsearch\ElasticClient as Client; use PDPhilip\Elasticsearch\Schema\Builder as SchemaBuilder; use PDPhilip\Elasticsearch\Utils\Helpers; function getLaravelVersion(): int { try { retu...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/DynamicIndicesTest.php
tests/DynamicIndicesTest.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Tests\Models\PageHit; beforeEach(function () { PageHit::executeSchema(); }); test('creates using a suffix', function () { $pageHit = new PageHit; $pageHit['page_id'] = 1; $pageHit['page_name'] = 'foo'; $pageHit->setSuffix('_2021-01-01')->...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/QueryStringTest.php
tests/QueryStringTest.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Query\Options\QueryStringOptions; use PDPhilip\Elasticsearch\Tests\Models\Product; use PDPhilip\Elasticsearch\Tests\Models\User; beforeEach(function () { User::executeSchema(); Product::executeSchema(); User::insert([ ['name' => 'John Doe...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/TestCase.php
tests/TestCase.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests; use Orchestra\Testbench\TestCase as Orchestra; use PDPhilip\Elasticsearch\ElasticServiceProvider; class TestCase extends Orchestra { protected function getPackageProviders($app): array { return [ ElasticServiceProvide...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/QueryParameterTest.php
tests/QueryParameterTest.php
<?php declare(strict_types=1); use Illuminate\Database\Events\QueryExecuted; use Illuminate\Support\Facades\Event; use PDPhilip\Elasticsearch\Tests\Models\User; beforeEach(function () { Event::fake(); User::executeSchema(); }); it('tests save without refresh', function () { $user = new User; $user-...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/QueryTest.php
tests/QueryTest.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Tests\Models\Birthday; use PDPhilip\Elasticsearch\Tests\Models\Product; use PDPhilip\Elasticsearch\Tests\Models\Scoped; use PDPhilip\Elasticsearch\Tests\Models\User; beforeEach(function () { User::executeSchema(); Birthday::executeSchema(); Scoped...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/QueryBuilderTest.php
tests/QueryBuilderTest.php
<?php declare(strict_types=1); use Carbon\Carbon; use Illuminate\Support\Facades\Date; use Illuminate\Support\Facades\DB; use PDPhilip\Elasticsearch\Tests\Models\Item; use PDPhilip\Elasticsearch\Tests\Models\User; beforeEach(function () { User::executeSchema(); Item::executeSchema(); DB::table('users')-...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/GeospatialTest.php
tests/GeospatialTest.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Tests\Models\Location; beforeEach(function () { Location::executeSchema(); Location::create([ 'name' => 'Picadilly', 'location' => [ 'type' => 'LineString', 'coordinates' => [ [ ...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/ModelTest.php
tests/ModelTest.php
<?php declare(strict_types=1); use Carbon\Carbon; use Illuminate\Database\Eloquent\Collection as EloquentCollection; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Support\Str; use PDPhilip\Elasticsearch\Connection; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/ArchitectureTest.php
tests/ArchitectureTest.php
<?php declare(strict_types=1); // saftey tests to make sure we never push up a package that can dump and die. arch('it will not use debugging functions') ->expect(['dd', 'dump', 'ray', 'var_dump']) ->not->toBeUsed();
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/QueryElasticsearchSpecificTest.php
tests/QueryElasticsearchSpecificTest.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Query\Builder; use PDPhilip\Elasticsearch\Tests\Models\Post; use PDPhilip\Elasticsearch\Tests\Models\User; beforeEach(function () { User::executeSchema(); Post::executeSchema(); User::insert([ ['name' => 'John Doe', 'age' => 35, 'title' =...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/SchemaTest.php
tests/SchemaTest.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\DB; use PDPhilip\Elasticsearch\Exceptions\InvalidFieldTypeException; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; use PDPhilip\Elasticsearch\Tests\Models\User; beforeEach(function () { Schema::dropIfExists('ne...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/LargeRecordsTest.php
tests/LargeRecordsTest.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Tests\Models\Product; beforeEach(function () { Product::executeSchema(); }); it('tests track total hits', function () { Product::buildRecords(11_000); class ProductWithDefaultTrackTotalHits extends Product { protected $connection =...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/QueryElasticsearchSpecificTestWithId.php
tests/WithIds/QueryElasticsearchSpecificTestWithId.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Query\Builder; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Post; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\User; beforeEach(function () { User::executeSchema(); Post::executeSchema(); User::insert([ ['name' => 'John Doe'...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/DynamicIndicesTestWithId.php
tests/WithIds/DynamicIndicesTestWithId.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\PageHit; beforeEach(function () { PageHit::executeSchema(); }); test('creates using a suffix', function () { $pageHit = new PageHit; $pageHit['page_id'] = 1; $pageHit['page_name'] = 'foo'; $pageHit->setSuffix('_20...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/PropertyTestWithId.php
tests/WithIds/PropertyTestWithId.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\HiddenAnimal; beforeEach(function () { HiddenAnimal::executeSchema(); }); it('can hide certain properties', function () { HiddenAnimal::create([ 'name' => 'Sheep', 'country' => 'Ireland', 'can_be_eaten...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/QueryBuilderMetricsAggregationTestWithId.php
tests/WithIds/QueryBuilderMetricsAggregationTestWithId.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\DB; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Item; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\User; beforeEach(function () { User::executeSchema(); Item::executeSchema(); DB::table('items')->insert([ ['name' => 'kn...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/QueryParameterTestWithId.php
tests/WithIds/QueryParameterTestWithId.php
<?php declare(strict_types=1); use Illuminate\Database\Events\QueryExecuted; use Illuminate\Support\Facades\Event; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\User; beforeEach(function () { Event::fake(); User::executeSchema(); }); it('tests save without refresh', function () { $user = new User...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/ModelTestWithId.php
tests/WithIds/ModelTestWithId.php
<?php declare(strict_types=1); use Carbon\Carbon; use Illuminate\Database\Eloquent\Collection as EloquentCollection; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Support\Str; use PDPhilip\Elasticsearch\Connection; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/QueryTestWithId.php
tests/WithIds/QueryTestWithId.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Birthday; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Product; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Scoped; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\User; beforeEach(function () { User::executeSch...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/RelationsTestWithId.php
tests/WithIds/RelationsTestWithId.php
<?php declare(strict_types=1); use Illuminate\Database\Eloquent\Collection; use Illuminate\Support\Str; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Address; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Book; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Client; use PDPhilip\Elasticsearch\Tests\Mo...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
true
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/QueryBuilderBucketAggregationTestWithId.php
tests/WithIds/QueryBuilderBucketAggregationTestWithId.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\DB; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Birthday; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Item; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\User; beforeEach(function () { User::executeSchema(); Item::executeSche...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/ReindexTestWithId.php
tests/WithIds/ReindexTestWithId.php
<?php use Illuminate\Support\Facades\DB; use PDPhilip\Elasticsearch\Exceptions\QueryException; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; use PDPhilip\Elasticsearch\Tests\Factories\ProductFactory; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Product; it('re-indexs da...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/ExceptionTestWithId.php
tests/WithIds/ExceptionTestWithId.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\DB; use PDPhilip\Elasticsearch\Exceptions\QueryException; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\PageHit; // Set up the database schema before each test beforeEach(function () { PageHit::executeSchema(); }); it('tests first or fail', fun...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/HybridRelationsTestWithId.php
tests/WithIds/HybridRelationsTestWithId.php
<?php declare(strict_types=1); use Illuminate\Database\SQLiteConnection; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Book; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Experience; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Label; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Role; use PD...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/QueryBuilderTestWithId.php
tests/WithIds/QueryBuilderTestWithId.php
<?php declare(strict_types=1); use Carbon\Carbon; use Illuminate\Support\Facades\Date; use Illuminate\Support\Facades\DB; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Item; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\User; beforeEach(function () { User::executeSchema(); Item::executeSchema(); ...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/GeospatialTestWithId.php
tests/WithIds/GeospatialTestWithId.php
<?php declare(strict_types=1); use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\Location; beforeEach(function () { Location::executeSchema(); Location::create([ 'name' => 'Picadilly', 'location' => [ 'type' => 'LineString', 'coordinates' => [ [ ...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/WithIds/SchemaTestWithId.php
tests/WithIds/SchemaTestWithId.php
<?php declare(strict_types=1); use Illuminate\Support\Facades\DB; use PDPhilip\Elasticsearch\Exceptions\InvalidFieldTypeException; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; use PDPhilip\Elasticsearch\Tests\Models\IdGenerated\User; beforeEach(function () { Schema::drop...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Benchmarks/UuidBenchmarks.php
tests/Benchmarks/UuidBenchmarks.php
<?php namespace PDPhilip\Elasticsearch\Tests\Benchmarks; use AllowDynamicProperties; use PDPhilip\Elasticsearch\Utils\Helpers; use PDPhilip\Elasticsearch\Utils\TimeBasedUUIDGenerator; use PDPhilip\Elasticsearch\Utils\Timer; #[AllowDynamicProperties] class UuidBenchmarks { use Timer; public function __constr...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Address.php
tests/Models/Address.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; class Address extends Model { protected $connection = 'elasticsearch'; protected $table = 'address'...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Client.php
tests/Models/Client.php
<?php namespace PDPhilip\Elasticsearch\Tests\Models; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\MorphOne; use PDPhilip\Elasticsearch\Eloquent\HybridRelations; use PDPhilip\Elasticsearch\Eloquent\Model; use PD...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Guarded.php
tests/Models/Guarded.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use PDPhilip\Elasticsearch\Eloquent\Model; class Guarded extends Model { protected $connection = 'elasticsearch'; protected $table = 'guarded'; protected $guarded = ['foobar', 'level1->level2']; }
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/HiddenAnimal.php
tests/Models/HiddenAnimal.php
<?php namespace PDPhilip\Elasticsearch\Tests\Models; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; /** * @property string $name * @property string $country * @property bool $can_be_eaten */ class HiddenAnimal extends Model { ...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Product.php
tests/Models/Product.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; class Product extends Model { protected $connection = 'elasticsearch'; protected $table = 'products...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/User.php
tests/Models/User.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use DateTimeInterface; use Illuminate\Auth\Authenticatable; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\CanResetPassword as CanRese...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Birthday.php
tests/Models/Birthday.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; class Birthday extends Model { protected $connection = 'elasticsearch'; protected $table = 'birthda...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/PageHit.php
tests/Models/PageHit.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use PDPhilip\Elasticsearch\Eloquent\DynamicIndex; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; class PageHit extends Model { use DynamicIndex; p...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Label.php
tests/Models/Label.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use Illuminate\Database\Eloquent\Relations\MorphToMany; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; /** * @property string $title * @property string $...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Photo.php
tests/Models/Photo.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use Illuminate\Database\Eloquent\Relations\MorphTo; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; class Photo extends Model { protected $connection = ...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/MemberStatus.php
tests/Models/MemberStatus.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; enum MemberStatus: string { case Member = 'MEMBER'; }
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Role.php
tests/Models/Role.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; /** * @property string $title * @property string $author * @property array $chapters */ class Role exten...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Soft.php
tests/Models/Soft.php
<?php namespace PDPhilip\Elasticsearch\Tests\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\MassPrunable; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Eloquent\SoftDeletes; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schem...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Location.php
tests/Models/Location.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; class Location extends Model { protected $keyType = 'string'; protected $connection = 'elasticsearc...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/SqlBook.php
tests/Models/SqlBook.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use Illuminate\Database\Eloquent\Model as EloquentModel; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\SQLiteBuilder; use Illuminate\Support\Facades\Schema; u...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Experience.php
tests/Models/Experience.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; class Experience extends Model { protected $connection = 'elasticsearch'; protected $table = 'exper...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Item.php
tests/Models/Item.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use Carbon\Carbon; use PDPhilip\Elasticsearch\Eloquent\Builder; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Relations\BelongsTo; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schem...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Scoped.php
tests/Models/Scoped.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use PDPhilip\Elasticsearch\Eloquent\Builder; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; class Scoped extends Model { protected $connection = 'elast...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/SqlRole.php
tests/Models/SqlRole.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use Illuminate\Database\Eloquent\Model as EloquentModel; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\SQLiteBuilder; use Illuminate\Support\Facades\Schema; u...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Group.php
tests/Models/Group.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use Carbon\Carbon; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use PDPhilip\Elasticsearch\Eloquent\Model; /** @property Carbon $created_at */ class Group extends Model { protected $connection = 'elasticsearch'; prot...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Post.php
tests/Models/Post.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; class Post extends Model { protected $connection = 'elasticsearch'; protected $table = 'post'; ...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Book.php
tests/Models/Book.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use Illuminate\Database\Eloquent\Relations\BelongsTo; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; class Book extends Model { protected $connection =...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/Skill.php
tests/Models/Skill.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use PDPhilip\Elasticsearch\Eloquent\Model; use PDPhilip\Elasticsearch\Schema\Blueprint; use PDPhilip\Elasticsearch\Schema\Schema; /** * @property string $title * @property string...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/SqlUser.php
tests/Models/SqlUser.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models; use Illuminate\Database\Eloquent\Model as EloquentModel; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\HasOne; use Illuminate\Databa...
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/IdGenerated/Address.php
tests/Models/IdGenerated/Address.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models\IdGenerated; use PDPhilip\Elasticsearch\Eloquent\GeneratesUuids; use PDPhilip\Elasticsearch\Tests\Models\Address as Base; class Address extends Base { use GeneratesUuids; }
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/IdGenerated/Client.php
tests/Models/IdGenerated/Client.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models\IdGenerated; use PDPhilip\Elasticsearch\Eloquent\GeneratesUuids; use PDPhilip\Elasticsearch\Tests\Models\Client as Base; class Client extends Base { use GeneratesUuids; }
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/IdGenerated/Guarded.php
tests/Models/IdGenerated/Guarded.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models\IdGenerated; use PDPhilip\Elasticsearch\Eloquent\GeneratesUuids; use PDPhilip\Elasticsearch\Tests\Models\Guarded as Base; class Guarded extends Base { use GeneratesUuids; }
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/IdGenerated/HiddenAnimal.php
tests/Models/IdGenerated/HiddenAnimal.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models\IdGenerated; use PDPhilip\Elasticsearch\Eloquent\GeneratesUuids; use PDPhilip\Elasticsearch\Tests\Models\HiddenAnimal as Base; class HiddenAnimal extends Base { use GeneratesUuids; }
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/IdGenerated/Product.php
tests/Models/IdGenerated/Product.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models\IdGenerated; use PDPhilip\Elasticsearch\Eloquent\GeneratesUuids; use PDPhilip\Elasticsearch\Tests\Models\Product as Base; class Product extends Base { use GeneratesUuids; }
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false
pdphilip/laravel-elasticsearch
https://github.com/pdphilip/laravel-elasticsearch/blob/fa763d05633d714afb22f6ca769e7b9aab2c1f5c/tests/Models/IdGenerated/User.php
tests/Models/IdGenerated/User.php
<?php declare(strict_types=1); namespace PDPhilip\Elasticsearch\Tests\Models\IdGenerated; use PDPhilip\Elasticsearch\Eloquent\GeneratesUuids; use PDPhilip\Elasticsearch\Tests\Models\User as Base; class User extends Base { use GeneratesUuids; }
php
MIT
fa763d05633d714afb22f6ca769e7b9aab2c1f5c
2026-01-05T04:30:19.564556Z
false