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
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/QueryScopes/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/QueryScopes/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\QueryScopes\Models; use Illuminate\Database\Eloquent\Attributes\Scope; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; /** * @method static Builder<static>|Comment local() Scope using the 'Scope' attribute * @method static Builder<static>|Comment newModelQuery() * @method static Builder<static>|Comment newQuery() * @method static Builder<static>|Comment query() * @method static Builder<static>|Comment system() Scope using the 'scope' prefix * @mixin \Eloquent */ class Comment extends Model { /** * @comment Scope using the 'Scope' attribute * @param Builder $query * @return void */ #[Scope] protected function local(Builder $query): void { $query->where('ip_address', '127.0.0.1'); } /** * @comment Scope using the 'scope' prefix * @param Builder $query * @return void */ protected function scopeSystem(Builder $query): void { $query->where('system', true); } } <?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\QueryScopes\Models; /** * @property int $id * @property string|null $char_nullable * @property string $char_not_nullable * @property string|null $string_nullable * @property string $string_not_nullable * @property string|null $text_nullable * @property string $text_not_nullable * @property string|null $medium_text_nullable * @property string $medium_text_not_nullable * @property string|null $long_text_nullable * @property string $long_text_not_nullable * @property int|null $integer_nullable * @property int $integer_not_nullable * @property int|null $tiny_integer_nullable * @property int $tiny_integer_not_nullable * @property int|null $small_integer_nullable * @property int $small_integer_not_nullable * @property int|null $medium_integer_nullable * @property int $medium_integer_not_nullable * @property int|null $big_integer_nullable * @property int $big_integer_not_nullable * @property int|null $unsigned_integer_nullable * @property int $unsigned_integer_not_nullable * @property int|null $unsigned_tiny_integer_nullable * @property int $unsigned_tiny_integer_not_nullable * @property int|null $unsigned_small_integer_nullable * @property int $unsigned_small_integer_not_nullable * @property int|null $unsigned_medium_integer_nullable * @property int $unsigned_medium_integer_not_nullable * @property int|null $unsigned_big_integer_nullable * @property int $unsigned_big_integer_not_nullable * @property float|null $float_nullable * @property float $float_not_nullable * @property float|null $double_nullable * @property float $double_not_nullable * @property numeric|null $decimal_nullable * @property numeric $decimal_not_nullable * @property int|null $boolean_nullable * @property int $boolean_not_nullable * @property string|null $enum_nullable * @property string $enum_not_nullable * @property string|null $json_nullable * @property string $json_not_nullable * @property string|null $jsonb_nullable * @property string $jsonb_not_nullable * @property string|null $date_nullable * @property string $date_not_nullable * @property string|null $datetime_nullable * @property string $datetime_not_nullable * @property string|null $datetimetz_nullable * @property string $datetimetz_not_nullable * @property string|null $time_nullable * @property string $time_not_nullable * @property string|null $timetz_nullable * @property string $timetz_not_nullable * @property string|null $timestamp_nullable * @property string $timestamp_not_nullable * @property string|null $timestamptz_nullable * @property string $timestamptz_not_nullable * @property int|null $year_nullable * @property int $year_not_nullable * @property string|null $binary_nullable * @property string $binary_not_nullable * @property string|null $uuid_nullable * @property string $uuid_not_nullable * @property string|null $ipaddress_nullable * @property string $ipaddress_not_nullable * @property string|null $macaddress_nullable * @property string $macaddress_not_nullable * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @method static \Illuminate\Database\Eloquent\Builder<static>|Post active() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post public() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereId($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNullable($value) * @mixin \Eloquent */ class Post extends PostParent { public function scopePublic($query) { return $query; } } <?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\QueryScopes\Models; use Illuminate\Database\Eloquent\Model; /** * @method static \Illuminate\Database\Eloquent\Builder<static>|PostParent active() * @method static \Illuminate\Database\Eloquent\Builder<static>|PostParent newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|PostParent newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|PostParent query() * @mixin \Eloquent */ class PostParent extends Model { public function scopeActive($query) { return $query; } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/QueryScopes/Models/Comment.php
tests/Console/ModelsCommand/QueryScopes/Models/Comment.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\QueryScopes\Models; use Illuminate\Database\Eloquent\Attributes\Scope; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; class Comment extends Model { /** * @comment Scope using the 'Scope' attribute * @param Builder $query * @return void */ #[Scope] protected function local(Builder $query): void { $query->where('ip_address', '127.0.0.1'); } /** * @comment Scope using the 'scope' prefix * @param Builder $query * @return void */ protected function scopeSystem(Builder $query): void { $query->where('system', true); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/QueryScopes/Models/PostParent.php
tests/Console/ModelsCommand/QueryScopes/Models/PostParent.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\QueryScopes\Models; use Illuminate\Database\Eloquent\Model; class PostParent extends Model { public function scopeActive($query) { return $query; } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/QueryScopes/Models/Post.php
tests/Console/ModelsCommand/QueryScopes/Models/Post.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\QueryScopes\Models; class Post extends PostParent { public function scopePublic($query) { return $query; } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Getter/Test.php
tests/Console/ModelsCommand/Getter/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Getter; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Getter/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/Getter/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Getter\Models; use DateTime; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property-read int|null $attribute_return_type_int_or_null * @property-read array $attribute_returns_array * @property-read bool $attribute_returns_bool * @property-read callable $attribute_returns_callable * @property-read bool $attribute_returns_float * @property-read \Illuminate\Support\Facades\Date $attribute_returns_fqn_class * @property-read DateTime $attribute_returns_imported_class * @property-read array|null $attribute_returns_nullable_array * @property-read bool|null $attribute_returns_nullable_bool * @property-read callable|null $attribute_returns_nullable_callable * @property-read bool|null $attribute_returns_nullable_float * @property-read \stdClass|null $attribute_returns_nullable_std_class * @property-read \stdClass $attribute_returns_std_class * @property-read void $attribute_returns_void * @property-read \what|\ever|\we-write/here $attribute_takes_phpdoc_literal * @property-read int $attribute_with_int_return_phpdoc * @property-read string $attribute_with_int_return_type_and_but_phpdoc_string * @property-read int $attribute_with_int_return_type_and_phpdoc * @property-read int $attribute_with_int_return_type * @property-read mixed $attribute_without_type * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple whereId($value) * @mixin \Eloquent */ class Simple extends Model { /** * @return int */ public function getAttributeWithIntReturnPhpdocAttribute() { } public function getAttributeWithIntReturnTypeAttribute(): int { } /** * @return int */ public function getAttributeWithIntReturnTypeAndPhpdocAttribute(): int { } /** * @return string */ public function getAttributeWithIntReturnTypeAndButPhpdocStringAttribute(): int { } public function getAttributeWithoutTypeAttribute() { } /** * @return \what|\ever|\we-write/here */ public function getAttributeTakesPhpdocLiteralAttribute() { } public function getAttributeReturnTypeIntOrNullAttribute(): ?int { } public function getAttributeReturnsImportedClassAttribute(): DateTime { } public function getAttributeReturnsFqnClassAttribute(): \Illuminate\Support\Facades\Date { } public function getAttributeReturnsArrayAttribute(): array { } public function getAttributeReturnsNullableArrayAttribute(): ?array { } public function getAttributeReturnsStdClassAttribute(): \stdClass { } public function getAttributeReturnsNullableStdClassAttribute(): ?\stdClass { } public function getAttributeReturnsBoolAttribute(): bool { } public function getAttributeReturnsNullableBoolAttribute(): ?bool { } public function getAttributeReturnsFloatAttribute(): bool { } public function getAttributeReturnsNullableFloatAttribute(): ?bool { } public function getAttributeReturnsCallableAttribute(): callable { } public function getAttributeReturnsNullableCallableAttribute(): ?callable { } /** * Doesn't make sense, but… */ public function getAttributeReturnsVoidAttribute(): void { } private function getInvalidAccessModifierAttribute() { } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Getter/Models/Simple.php
tests/Console/ModelsCommand/Getter/Models/Simple.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Getter\Models; use DateTime; use Illuminate\Database\Eloquent\Model; class Simple extends Model { /** * @return int */ public function getAttributeWithIntReturnPhpdocAttribute() { } public function getAttributeWithIntReturnTypeAttribute(): int { } /** * @return int */ public function getAttributeWithIntReturnTypeAndPhpdocAttribute(): int { } /** * @return string */ public function getAttributeWithIntReturnTypeAndButPhpdocStringAttribute(): int { } public function getAttributeWithoutTypeAttribute() { } /** * @return \what|\ever|\we-write/here */ public function getAttributeTakesPhpdocLiteralAttribute() { } public function getAttributeReturnTypeIntOrNullAttribute(): ?int { } public function getAttributeReturnsImportedClassAttribute(): DateTime { } public function getAttributeReturnsFqnClassAttribute(): \Illuminate\Support\Facades\Date { } public function getAttributeReturnsArrayAttribute(): array { } public function getAttributeReturnsNullableArrayAttribute(): ?array { } public function getAttributeReturnsStdClassAttribute(): \stdClass { } public function getAttributeReturnsNullableStdClassAttribute(): ?\stdClass { } public function getAttributeReturnsBoolAttribute(): bool { } public function getAttributeReturnsNullableBoolAttribute(): ?bool { } public function getAttributeReturnsFloatAttribute(): bool { } public function getAttributeReturnsNullableFloatAttribute(): ?bool { } public function getAttributeReturnsCallableAttribute(): callable { } public function getAttributeReturnsNullableCallableAttribute(): ?callable { } /** * Doesn't make sense, but… */ public function getAttributeReturnsVoidAttribute(): void { } private function getInvalidAccessModifierAttribute() { } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithFqnInExternalFile/Test.php
tests/Console/ModelsCommand/GeneratePhpdocWithFqnInExternalFile/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--nowrite' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Model information was written to _ide_helper_models.php', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithFqnInExternalFile/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/GeneratePhpdocWithFqnInExternalFile/__snapshots__/Test__test__1.php
<?php // @formatter:off // phpcs:ignoreFile /** * A helper file for your Eloquent Models * Copy the phpDocs from this file to the correct Model, * And remove them from this file, to prevent double declarations. * * @author Barry vd. Heuvel <barryvdh@gmail.com> */ namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Models{ /** * @property int $id * @property string|null $char_nullable * @property string $char_not_nullable * @property string|null $string_nullable * @property string $string_not_nullable * @property string|null $text_nullable * @property string $text_not_nullable * @property string|null $medium_text_nullable * @property string $medium_text_not_nullable * @property string|null $long_text_nullable * @property string $long_text_not_nullable * @property int|null $integer_nullable * @property int $integer_not_nullable * @property int|null $tiny_integer_nullable * @property int $tiny_integer_not_nullable * @property int|null $small_integer_nullable * @property int $small_integer_not_nullable * @property int|null $medium_integer_nullable * @property int $medium_integer_not_nullable * @property int|null $big_integer_nullable * @property int $big_integer_not_nullable * @property int|null $unsigned_integer_nullable * @property int $unsigned_integer_not_nullable * @property int|null $unsigned_tiny_integer_nullable * @property int $unsigned_tiny_integer_not_nullable * @property int|null $unsigned_small_integer_nullable * @property int $unsigned_small_integer_not_nullable * @property int|null $unsigned_medium_integer_nullable * @property int $unsigned_medium_integer_not_nullable * @property int|null $unsigned_big_integer_nullable * @property int $unsigned_big_integer_not_nullable * @property float|null $float_nullable * @property float $float_not_nullable * @property float|null $double_nullable * @property float $double_not_nullable * @property numeric|null $decimal_nullable * @property numeric $decimal_not_nullable * @property int|null $boolean_nullable * @property int $boolean_not_nullable * @property string|null $enum_nullable * @property string $enum_not_nullable * @property string|null $json_nullable * @property string $json_not_nullable * @property string|null $jsonb_nullable * @property string $jsonb_not_nullable * @property string|null $date_nullable * @property string $date_not_nullable * @property string|null $datetime_nullable * @property string $datetime_not_nullable * @property string|null $datetimetz_nullable * @property string $datetimetz_not_nullable * @property string|null $time_nullable * @property string $time_not_nullable * @property string|null $timetz_nullable * @property string $timetz_not_nullable * @property string|null $timestamp_nullable * @property string $timestamp_not_nullable * @property string|null $timestamptz_nullable * @property string $timestamptz_not_nullable * @property int|null $year_nullable * @property int $year_not_nullable * @property string|null $binary_nullable * @property string $binary_not_nullable * @property string|null $uuid_nullable * @property string $uuid_not_nullable * @property string|null $ipaddress_nullable * @property string $ipaddress_not_nullable * @property string|null $macaddress_nullable * @property string $macaddress_not_nullable * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post newModelQuery() * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post newQuery() * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post query() * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereBigIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereBigIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereBinaryNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereBinaryNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereBooleanNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereBooleanNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereCharNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereCharNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereCreatedAt($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereDateNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereDateNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereDatetimeNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereDatetimeNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereDatetimetzNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereDatetimetzNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereDecimalNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereDecimalNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereDoubleNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereDoubleNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereEnumNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereEnumNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereFloatNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereFloatNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereId($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereIpaddressNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereIpaddressNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereJsonNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereJsonNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereJsonbNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereJsonbNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereLongTextNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereLongTextNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereMacaddressNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereMacaddressNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereMediumIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereMediumIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereMediumTextNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereMediumTextNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereSmallIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereSmallIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereStringNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereStringNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereTextNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereTextNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereTimeNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereTimeNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereTimestampNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereTimestampNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereTimestamptzNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereTimestamptzNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereTimetzNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereTimetzNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereTinyIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereTinyIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereUnsignedBigIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereUnsignedBigIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereUnsignedIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereUnsignedIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereUnsignedMediumIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereUnsignedMediumIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereUnsignedSmallIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereUnsignedSmallIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereUnsignedTinyIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereUnsignedTinyIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereUpdatedAt($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereUuidNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereUuidNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereYearNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder<static>|Post whereYearNullable($value) */ class Post extends \Eloquent {} }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithFqnInExternalFile/Builders/EMaterialQueryBuilder.php
tests/Console/ModelsCommand/GeneratePhpdocWithFqnInExternalFile/Builders/EMaterialQueryBuilder.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders; use Illuminate\Database\Eloquent\Builder; class EMaterialQueryBuilder extends Builder { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithFqnInExternalFile/Models/Post.php
tests/Console/ModelsCommand/GeneratePhpdocWithFqnInExternalFile/Models/Post.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Models; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithFqnInExternalFile\Builders\EMaterialQueryBuilder; use Illuminate\Database\Eloquent\Model; class Post extends Model { public function newEloquentBuilder($query): EMaterialQueryBuilder { return new EMaterialQueryBuilder($query); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithMixin/Test.php
tests/Console/ModelsCommand/GeneratePhpdocWithMixin/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithMixin; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write-mixin' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithMixin/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/GeneratePhpdocWithMixin/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithMixin\Models; use Illuminate\Database\Eloquent\Model; /** * @property $someProp * @method someMethod(string $method) * @mixin IdeHelperFinalPost */ final class FinalPost extends Model { } <?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithMixin\Models; use Illuminate\Database\Eloquent\Model; /** * @property $someProp * @method someMethod(string $method) * @mixin IdeHelperPost */ class Post extends Model { } <?php // @formatter:off // phpcs:ignoreFile /** * A helper file for your Eloquent Models * Copy the phpDocs from this file to the correct Model, * And remove them from this file, to prevent double declarations. * * @author Barry vd. Heuvel <barryvdh@gmail.com> */ namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithMixin\Models{ /** * @property $someProp * @method someMethod(string $method) * @method static \Illuminate\Database\Eloquent\Builder<static>|FinalPost newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|FinalPost newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|FinalPost query() * @mixin \Eloquent */ #[\AllowDynamicProperties] final class IdeHelperFinalPost {} } namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithMixin\Models{ /** * @property $someProp * @method someMethod(string $method) * @property int $id * @property string|null $char_nullable * @property string $char_not_nullable * @property string|null $string_nullable * @property string $string_not_nullable * @property string|null $text_nullable * @property string $text_not_nullable * @property string|null $medium_text_nullable * @property string $medium_text_not_nullable * @property string|null $long_text_nullable * @property string $long_text_not_nullable * @property int|null $integer_nullable * @property int $integer_not_nullable * @property int|null $tiny_integer_nullable * @property int $tiny_integer_not_nullable * @property int|null $small_integer_nullable * @property int $small_integer_not_nullable * @property int|null $medium_integer_nullable * @property int $medium_integer_not_nullable * @property int|null $big_integer_nullable * @property int $big_integer_not_nullable * @property int|null $unsigned_integer_nullable * @property int $unsigned_integer_not_nullable * @property int|null $unsigned_tiny_integer_nullable * @property int $unsigned_tiny_integer_not_nullable * @property int|null $unsigned_small_integer_nullable * @property int $unsigned_small_integer_not_nullable * @property int|null $unsigned_medium_integer_nullable * @property int $unsigned_medium_integer_not_nullable * @property int|null $unsigned_big_integer_nullable * @property int $unsigned_big_integer_not_nullable * @property float|null $float_nullable * @property float $float_not_nullable * @property float|null $double_nullable * @property float $double_not_nullable * @property numeric|null $decimal_nullable * @property numeric $decimal_not_nullable * @property int|null $boolean_nullable * @property int $boolean_not_nullable * @property string|null $enum_nullable * @property string $enum_not_nullable * @property string|null $json_nullable * @property string $json_not_nullable * @property string|null $jsonb_nullable * @property string $jsonb_not_nullable * @property string|null $date_nullable * @property string $date_not_nullable * @property string|null $datetime_nullable * @property string $datetime_not_nullable * @property string|null $datetimetz_nullable * @property string $datetimetz_not_nullable * @property string|null $time_nullable * @property string $time_not_nullable * @property string|null $timetz_nullable * @property string $timetz_not_nullable * @property string|null $timestamp_nullable * @property string $timestamp_not_nullable * @property string|null $timestamptz_nullable * @property string $timestamptz_not_nullable * @property int|null $year_nullable * @property int $year_not_nullable * @property string|null $binary_nullable * @property string $binary_not_nullable * @property string|null $uuid_nullable * @property string $uuid_not_nullable * @property string|null $ipaddress_nullable * @property string $ipaddress_not_nullable * @property string|null $macaddress_nullable * @property string $macaddress_not_nullable * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereId($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNullable($value) * @mixin \Eloquent */ #[\AllowDynamicProperties] class IdeHelperPost {} }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithMixin/Models/FinalPost.php
tests/Console/ModelsCommand/GeneratePhpdocWithMixin/Models/FinalPost.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithMixin\Models; use Illuminate\Database\Eloquent\Model; /** * @property $someProp * @method someMethod(string $method) * @mixin IdeHelperPost */ final class FinalPost extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithMixin/Models/Post.php
tests/Console/ModelsCommand/GeneratePhpdocWithMixin/Models/Post.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithMixin\Models; use Illuminate\Database\Eloquent\Model; /** * @property $someProp * @method someMethod(string $method) * @mixin IdeHelperPost */ class Post extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/MagicWhere/Test.php
tests/Console/ModelsCommand/MagicWhere/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\MagicWhere; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { protected function getEnvironmentSetUp($app) { parent::getEnvironmentSetUp($app); $app['config']->set('ide-helper.write_model_magic_where', false); } public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/MagicWhere/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/MagicWhere/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\MagicWhere\Models; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property string|null $char_nullable * @property string $char_not_nullable * @property string|null $string_nullable * @property string $string_not_nullable * @property string|null $text_nullable * @property string $text_not_nullable * @property string|null $medium_text_nullable * @property string $medium_text_not_nullable * @property string|null $long_text_nullable * @property string $long_text_not_nullable * @property int|null $integer_nullable * @property int $integer_not_nullable * @property int|null $tiny_integer_nullable * @property int $tiny_integer_not_nullable * @property int|null $small_integer_nullable * @property int $small_integer_not_nullable * @property int|null $medium_integer_nullable * @property int $medium_integer_not_nullable * @property int|null $big_integer_nullable * @property int $big_integer_not_nullable * @property int|null $unsigned_integer_nullable * @property int $unsigned_integer_not_nullable * @property int|null $unsigned_tiny_integer_nullable * @property int $unsigned_tiny_integer_not_nullable * @property int|null $unsigned_small_integer_nullable * @property int $unsigned_small_integer_not_nullable * @property int|null $unsigned_medium_integer_nullable * @property int $unsigned_medium_integer_not_nullable * @property int|null $unsigned_big_integer_nullable * @property int $unsigned_big_integer_not_nullable * @property float|null $float_nullable * @property float $float_not_nullable * @property float|null $double_nullable * @property float $double_not_nullable * @property numeric|null $decimal_nullable * @property numeric $decimal_not_nullable * @property int|null $boolean_nullable * @property int $boolean_not_nullable * @property string|null $enum_nullable * @property string $enum_not_nullable * @property string|null $json_nullable * @property string $json_not_nullable * @property string|null $jsonb_nullable * @property string $jsonb_not_nullable * @property string|null $date_nullable * @property string $date_not_nullable * @property string|null $datetime_nullable * @property string $datetime_not_nullable * @property string|null $datetimetz_nullable * @property string $datetimetz_not_nullable * @property string|null $time_nullable * @property string $time_not_nullable * @property string|null $timetz_nullable * @property string $timetz_not_nullable * @property string|null $timestamp_nullable * @property string $timestamp_not_nullable * @property string|null $timestamptz_nullable * @property string $timestamptz_not_nullable * @property int|null $year_nullable * @property int $year_not_nullable * @property string|null $binary_nullable * @property string $binary_not_nullable * @property string|null $uuid_nullable * @property string $uuid_not_nullable * @property string|null $ipaddress_nullable * @property string $ipaddress_not_nullable * @property string|null $macaddress_nullable * @property string $macaddress_not_nullable * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post query() * @mixin \Eloquent */ class Post extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/MagicWhere/Models/Post.php
tests/Console/ModelsCommand/MagicWhere/Models/Post.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\MagicWhere\Models; use Illuminate\Database\Eloquent\Model; class Post extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Pivot/Test.php
tests/Console/ModelsCommand/Pivot/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Pivot; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Pivot/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/Pivot/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Pivot\Models; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Pivot\Models\Pivots\CustomPivot; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Pivot\Models\Pivots\DifferentCustomPivot; use Illuminate\Database\Eloquent\Model; /** * @property-read DifferentCustomPivot|CustomPivot|null $pivot * @property-read \Illuminate\Database\Eloquent\Collection<int, ModelWithPivot> $relationCustomPivotUsingSameAccessor * @property-read int|null $relation_custom_pivot_using_same_accessor_count * @property-read bool|null $relation_custom_pivot_using_same_accessor_exists * @property-read \Illuminate\Database\Eloquent\Collection<int, ModelWithPivot> $relationCustomPivotUsingSameAccessorAndClass * @property-read int|null $relation_custom_pivot_using_same_accessor_and_class_count * @property-read bool|null $relation_custom_pivot_using_same_accessor_and_class_exists * @property-read CustomPivot|null $customAccessor * @property-read \Illuminate\Database\Eloquent\Collection<int, ModelWithPivot> $relationWithCustomPivot * @property-read int|null $relation_with_custom_pivot_count * @property-read bool|null $relation_with_custom_pivot_exists * @property-read DifferentCustomPivot|null $differentCustomAccessor * @property-read \Illuminate\Database\Eloquent\Collection<int, ModelWithPivot> $relationWithDifferentCustomPivot * @property-read int|null $relation_with_different_custom_pivot_count * @property-read bool|null $relation_with_different_custom_pivot_exists * @property-read \Illuminate\Database\Eloquent\Collection<int, ModelWithPivot> $relationWithDifferentCustomPivotUsingSameAccessor * @property-read int|null $relation_with_different_custom_pivot_using_same_accessor_count * @property-read bool|null $relation_with_different_custom_pivot_using_same_accessor_exists * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithPivot newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithPivot newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithPivot query() * @mixin \Eloquent */ class ModelWithPivot extends Model { public function relationWithCustomPivot() { return $this->belongsToMany(ModelwithPivot::class) ->using(CustomPivot::class) ->as('customAccessor'); } public function relationWithDifferentCustomPivot() { return $this->belongsToMany(ModelwithPivot::class) ->using(DifferentCustomPivot::class) ->as('differentCustomAccessor'); } // without an accessor public function relationCustomPivotUsingSameAccessor() { return $this->belongsToMany(ModelwithPivot::class) ->using(CustomPivot::class); } public function relationCustomPivotUsingSameAccessorAndClass() { return $this->belongsToMany(ModelwithPivot::class) ->using(CustomPivot::class); } public function relationWithDifferentCustomPivotUsingSameAccessor() { return $this->belongsToMany(ModelwithPivot::class) ->using(DifferentCustomPivot::class); } } <?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Pivot\Models\Pivots; use Illuminate\Database\Eloquent\Relations\Pivot; /** * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomPivot newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomPivot newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|CustomPivot query() * @mixin \Eloquent */ class CustomPivot extends Pivot { } <?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Pivot\Models\Pivots; use Illuminate\Database\Eloquent\Relations\Pivot; /** * @method static \Illuminate\Database\Eloquent\Builder<static>|DifferentCustomPivot newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|DifferentCustomPivot newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|DifferentCustomPivot query() * @mixin \Eloquent */ class DifferentCustomPivot extends Pivot { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Pivot/Models/ModelWithPivot.php
tests/Console/ModelsCommand/Pivot/Models/ModelWithPivot.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Pivot\Models; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Pivot\Models\Pivots\CustomPivot; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Pivot\Models\Pivots\DifferentCustomPivot; use Illuminate\Database\Eloquent\Model; class ModelWithPivot extends Model { public function relationWithCustomPivot() { return $this->belongsToMany(ModelwithPivot::class) ->using(CustomPivot::class) ->as('customAccessor'); } public function relationWithDifferentCustomPivot() { return $this->belongsToMany(ModelwithPivot::class) ->using(DifferentCustomPivot::class) ->as('differentCustomAccessor'); } // without an accessor public function relationCustomPivotUsingSameAccessor() { return $this->belongsToMany(ModelwithPivot::class) ->using(CustomPivot::class); } public function relationCustomPivotUsingSameAccessorAndClass() { return $this->belongsToMany(ModelwithPivot::class) ->using(CustomPivot::class); } public function relationWithDifferentCustomPivotUsingSameAccessor() { return $this->belongsToMany(ModelwithPivot::class) ->using(DifferentCustomPivot::class); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Pivot/Models/Pivots/DifferentCustomPivot.php
tests/Console/ModelsCommand/Pivot/Models/Pivots/DifferentCustomPivot.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Pivot\Models\Pivots; use Illuminate\Database\Eloquent\Relations\Pivot; class DifferentCustomPivot extends Pivot { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Pivot/Models/Pivots/CustomPivot.php
tests/Console/ModelsCommand/Pivot/Models/Pivots/CustomPivot.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Pivot\Models\Pivots; use Illuminate\Database\Eloquent\Relations\Pivot; class CustomPivot extends Pivot { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilder/Test.php
tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilder/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--nowrite' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Model information was written to _ide_helper_models.php', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilder/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilder/__snapshots__/Test__test__1.php
<?php // @formatter:off // phpcs:ignoreFile /** * A helper file for your Eloquent Models * Copy the phpDocs from this file to the correct Model, * And remove them from this file, to prevent double declarations. * * @author Barry vd. Heuvel <barryvdh@gmail.com> */ namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Models{ /** * @property int $id * @property string|null $char_nullable * @property string $char_not_nullable * @property string|null $string_nullable * @property string $string_not_nullable * @property string|null $text_nullable * @property string $text_not_nullable * @property string|null $medium_text_nullable * @property string $medium_text_not_nullable * @property string|null $long_text_nullable * @property string $long_text_not_nullable * @property int|null $integer_nullable * @property int $integer_not_nullable * @property int|null $tiny_integer_nullable * @property int $tiny_integer_not_nullable * @property int|null $small_integer_nullable * @property int $small_integer_not_nullable * @property int|null $medium_integer_nullable * @property int $medium_integer_not_nullable * @property int|null $big_integer_nullable * @property int $big_integer_not_nullable * @property int|null $unsigned_integer_nullable * @property int $unsigned_integer_not_nullable * @property int|null $unsigned_tiny_integer_nullable * @property int $unsigned_tiny_integer_not_nullable * @property int|null $unsigned_small_integer_nullable * @property int $unsigned_small_integer_not_nullable * @property int|null $unsigned_medium_integer_nullable * @property int $unsigned_medium_integer_not_nullable * @property int|null $unsigned_big_integer_nullable * @property int $unsigned_big_integer_not_nullable * @property float|null $float_nullable * @property float $float_not_nullable * @property float|null $double_nullable * @property float $double_not_nullable * @property numeric|null $decimal_nullable * @property numeric $decimal_not_nullable * @property int|null $boolean_nullable * @property int $boolean_not_nullable * @property string|null $enum_nullable * @property string $enum_not_nullable * @property string|null $json_nullable * @property string $json_not_nullable * @property string|null $jsonb_nullable * @property string $jsonb_not_nullable * @property string|null $date_nullable * @property string $date_not_nullable * @property string|null $datetime_nullable * @property string $datetime_not_nullable * @property string|null $datetimetz_nullable * @property string $datetimetz_not_nullable * @property string|null $time_nullable * @property string $time_not_nullable * @property string|null $timetz_nullable * @property string $timetz_not_nullable * @property string|null $timestamp_nullable * @property string $timestamp_not_nullable * @property string|null $timestamptz_nullable * @property string $timestamptz_not_nullable * @property int|null $year_nullable * @property int $year_not_nullable * @property string|null $binary_nullable * @property string $binary_not_nullable * @property string|null $uuid_nullable * @property string $uuid_not_nullable * @property string|null $ipaddress_nullable * @property string $ipaddress_not_nullable * @property string|null $macaddress_nullable * @property string $macaddress_not_nullable * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post isActive() * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post isLoadingWith(?string $with) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post isStatus(string $status) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post newModelQuery() * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post newQuery() * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post query() * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereBigIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereBigIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereBinaryNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereBinaryNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereBooleanNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereBooleanNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereCharNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereCharNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereCreatedAt($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereDateNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereDateNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereDatetimeNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereDatetimeNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereDatetimetzNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereDatetimetzNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereDecimalNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereDecimalNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereDoubleNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereDoubleNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereEnumNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereEnumNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereFloatNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereFloatNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereId($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereIpaddressNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereIpaddressNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereJsonNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereJsonNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereJsonbNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereJsonbNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereLongTextNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereLongTextNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereMacaddressNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereMacaddressNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereMediumIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereMediumIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereMediumTextNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereMediumTextNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereSmallIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereSmallIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereStringNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereStringNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereTextNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereTextNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereTimeNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereTimeNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereTimestampNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereTimestampNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereTimestamptzNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereTimestamptzNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereTimetzNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereTimetzNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereTinyIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereTinyIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereUnsignedBigIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereUnsignedBigIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereUnsignedIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereUnsignedIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereUnsignedMediumIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereUnsignedMediumIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereUnsignedSmallIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereUnsignedSmallIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereUnsignedTinyIntegerNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereUnsignedTinyIntegerNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereUpdatedAt($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereUuidNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereUuidNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereYearNotNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post whereYearNullable($value) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post withBool(?bool $booleanVar) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post withBoolDifferently(?bool $booleanVar) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post withBoolTypeHinted(bool $booleanVar) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post withMixedOption($option) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post withNullAndAssignmentTestCommand(?\Barryvdh\LaravelIdeHelper\Console\ModelsCommand $testCommand = null) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post withNullTestCommand(?\Barryvdh\LaravelIdeHelper\Console\ModelsCommand $testCommand) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post withNullTestCommandInDocBlock($testCommand) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post withSomeone($someone) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post withTestCommand(\Barryvdh\LaravelIdeHelper\Console\ModelsCommand $testCommand) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post withTheNumber(?int $number) * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder<static>|Post withTheNumberDifferently(?int $number) */ class Post extends \Eloquent {} }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilder/Builders/PostExternalQueryBuilder.php
tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilder/Builders/PostExternalQueryBuilder.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Illuminate\Database\Eloquent\Builder; class PostExternalQueryBuilder extends Builder { public function isActive(): self { return $this; } public function isStatus(string $status): self { return $this; } public function isLoadingWith(?string $with): self { return $this; } /** * @param int|null $number * @return $this */ public function withTheNumber($number): self { return $this; } /** * @param integer|null $number * @return $this */ public function withTheNumberDifferently($number): self { return $this; } /** * @param bool|null $number * @return $this */ public function withBool($booleanVar): self { return $this; } /** * @param bool|null $number * @return $this */ public function withBoolDifferently($booleanVar): self { return $this; } public function withBoolTypeHinted(bool $booleanVar): self { return $this; } /** * @param int|string $someone * @return $this */ public function withSomeone($someone): self { return $this; } /** * @param mixed $option * @return $this */ public function withMixedOption($option): self { return $this; } public function withTestCommand(ModelsCommand $testCommand): self { return $this; } public function withNullTestCommand(?ModelsCommand $testCommand): self { return $this; } public function withNullAndAssignmentTestCommand(?ModelsCommand $testCommand = null): self { return $this; } /** * @param ModelsCommand $testCommand * @return $this */ public function withNullTestCommandInDocBlock($testCommand): self { return $this; } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilder/Models/Post.php
tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilder/Models/Post.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Models; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilder\Builders\PostExternalQueryBuilder; use Illuminate\Database\Eloquent\Model; class Post extends Model { public function newEloquentBuilder($query): PostExternalQueryBuilder { return new PostExternalQueryBuilder($query); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GenerateBasicPhpdocWithEloquentHelper/Test.php
tests/Console/ModelsCommand/GenerateBasicPhpdocWithEloquentHelper/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GenerateBasicPhpdocWithEloquentHelper; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, '--write-eloquent-helper' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertStringNotContainsString('Do you want to generate a minimal helper to generate the Eloquent methods?', $tester->getDisplay()); $this->assertStringContainsString('Eloquent helper was written to _ide_helper.php', $tester->getDisplay()); // $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GenerateBasicPhpdocWithEloquentHelper/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/GenerateBasicPhpdocWithEloquentHelper/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GenerateBasicPhpdocWithEloquentHelper\Models; use Illuminate\Database\Eloquent\Model; /** * * * @property int $id * @property string|null $char_nullable * @property string $char_not_nullable * @property string|null $string_nullable * @property string $string_not_nullable * @property string|null $text_nullable * @property string $text_not_nullable * @property string|null $medium_text_nullable * @property string $medium_text_not_nullable * @property string|null $long_text_nullable * @property string $long_text_not_nullable * @property int|null $integer_nullable * @property int $integer_not_nullable * @property int|null $tiny_integer_nullable * @property int $tiny_integer_not_nullable * @property int|null $small_integer_nullable * @property int $small_integer_not_nullable * @property int|null $medium_integer_nullable * @property int $medium_integer_not_nullable * @property int|null $big_integer_nullable * @property int $big_integer_not_nullable * @property int|null $unsigned_integer_nullable * @property int $unsigned_integer_not_nullable * @property int|null $unsigned_tiny_integer_nullable * @property int $unsigned_tiny_integer_not_nullable * @property int|null $unsigned_small_integer_nullable * @property int $unsigned_small_integer_not_nullable * @property int|null $unsigned_medium_integer_nullable * @property int $unsigned_medium_integer_not_nullable * @property int|null $unsigned_big_integer_nullable * @property int $unsigned_big_integer_not_nullable * @property float|null $float_nullable * @property float $float_not_nullable * @property float|null $double_nullable * @property float $double_not_nullable * @property string|null $decimal_nullable * @property string $decimal_not_nullable * @property int|null $boolean_nullable * @property int $boolean_not_nullable * @property string|null $enum_nullable * @property string $enum_not_nullable * @property string|null $json_nullable * @property string $json_not_nullable * @property string|null $jsonb_nullable * @property string $jsonb_not_nullable * @property string|null $date_nullable * @property string $date_not_nullable * @property string|null $datetime_nullable * @property string $datetime_not_nullable * @property string|null $datetimetz_nullable * @property string $datetimetz_not_nullable * @property string|null $time_nullable * @property string $time_not_nullable * @property string|null $timetz_nullable * @property string $timetz_not_nullable * @property string|null $timestamp_nullable * @property string $timestamp_not_nullable * @property string|null $timestamptz_nullable * @property string $timestamptz_not_nullable * @property int|null $year_nullable * @property int $year_not_nullable * @property string|null $binary_nullable * @property string $binary_not_nullable * @property string|null $uuid_nullable * @property string $uuid_not_nullable * @property string|null $ipaddress_nullable * @property string $ipaddress_not_nullable * @property string|null $macaddress_nullable * @property string $macaddress_not_nullable * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereId($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNullable($value) * @mixin \Eloquent */ class Post extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GenerateBasicPhpdocWithEloquentHelper/Models/Post.php
tests/Console/ModelsCommand/GenerateBasicPhpdocWithEloquentHelper/Models/Post.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GenerateBasicPhpdocWithEloquentHelper\Models; use Illuminate\Database\Eloquent\Model; class Post extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/migrations/____simple_casts_table.php
tests/Console/ModelsCommand/migrations/____simple_casts_table.php
<?php declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class SimpleCastsTable extends Migration { public function up(): void { Schema::create('simple_casts', static function (Blueprint $table) { $table->string('cast_to_int'); $table->string('cast_to_integer'); $table->string('cast_to_real'); $table->string('cast_to_float'); $table->string('cast_to_double'); $table->string('cast_to_decimal'); $table->string('cast_to_string'); $table->string('cast_to_bool'); $table->string('cast_to_boolean'); $table->string('cast_to_object'); $table->string('cast_to_array'); $table->string('cast_to_json'); $table->string('cast_to_collection'); $table->string('cast_to_date'); $table->string('cast_to_datetime'); $table->string('cast_to_date_serialization'); $table->string('cast_to_datetime_serialization'); $table->string('cast_to_custom_datetime'); $table->string('cast_to_immutable_date'); $table->string('cast_to_immutable_date_serialization'); $table->string('cast_to_immutable_custom_datetime'); $table->string('cast_to_immutable_datetime'); $table->string('cast_to_immutable_datetime_serialization'); $table->string('cast_to_timestamp'); $table->string('cast_to_encrypted'); $table->string('cast_to_encrypted_array'); $table->string('cast_to_encrypted_collection'); $table->string('cast_to_encrypted_json'); $table->string('cast_to_encrypted_object'); }); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/migrations/____simple_table.php
tests/Console/ModelsCommand/migrations/____simple_table.php
<?php declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class SimpleTable extends Migration { public function up(): void { Schema::create('simples', function (Blueprint $table) { $table->bigIncrements('id'); }); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/migrations/____morphs_table.php
tests/Console/ModelsCommand/migrations/____morphs_table.php
<?php declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class MorphsTable extends Migration { public function up(): void { Schema::create('morphs', function (Blueprint $table) { $table->morphs('relation_morph_to'); $table->nullableMorphs('nullable_relation_morph_to'); }); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/migrations/____custom_casts_table.php
tests/Console/ModelsCommand/migrations/____custom_casts_table.php
<?php declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CustomCastsTable extends Migration { public function up(): void { Schema::create('custom_casts', static function (Blueprint $table) { $table->string('casted_property_with_return_type'); $table->string('casted_property_with_return_docblock'); $table->string('casted_property_with_return_docblock_fqn'); $table->string('casted_property_with_return_primitive'); $table->string('casted_property_with_return_primitive_docblock'); $table->string('casted_property_with_return_nullable_primitive'); $table->string('casted_property_with_return_nullable_primitive_and_nullable_column')->nullable(); $table->string('casted_property_without_return'); $table->string('casted_property_with_param'); $table->string('casted_property_with_static_return_docblock'); $table->string('casted_property_with_this_return_docblock'); $table->string('extended_casted_property_with_static_return_docblock'); $table->string('extended_casted_property_with_this_return_docblock'); $table->string('casted_property_with_static_return_docblock_and_param'); }); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/migrations/____custom_dates_table.php
tests/Console/ModelsCommand/migrations/____custom_dates_table.php
<?php declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CustomDatesTable extends Migration { public function up(): void { Schema::create('custom_dates', function (Blueprint $table) { $table->timestamps(); }); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/migrations/____posts_table.php
tests/Console/ModelsCommand/migrations/____posts_table.php
<?php declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class PostsTable extends Migration { public function up(): void { Schema::create('posts', function (Blueprint $table) { $table->bigIncrements('id'); $table->char('char_nullable')->nullable(); $table->char('char_not_nullable'); $table->string('string_nullable')->nullable(); $table->string('string_not_nullable'); $table->text('text_nullable')->nullable(); $table->text('text_not_nullable'); $table->mediumText('medium_text_nullable')->nullable(); $table->mediumText('medium_text_not_nullable'); $table->longText('long_text_nullable')->nullable(); $table->longText('long_text_not_nullable'); $table->integer('integer_nullable')->nullable(); $table->integer('integer_not_nullable'); $table->tinyInteger('tiny_integer_nullable')->nullable(); $table->tinyInteger('tiny_integer_not_nullable'); $table->smallInteger('small_integer_nullable')->nullable(); $table->smallInteger('small_integer_not_nullable'); $table->mediumInteger('medium_integer_nullable')->nullable(); $table->mediumInteger('medium_integer_not_nullable'); $table->bigInteger('big_integer_nullable')->nullable(); $table->bigInteger('big_integer_not_nullable'); $table->unsignedInteger('unsigned_integer_nullable')->nullable(); $table->unsignedInteger('unsigned_integer_not_nullable'); $table->unsignedTinyInteger('unsigned_tiny_integer_nullable')->nullable(); $table->unsignedTinyInteger('unsigned_tiny_integer_not_nullable'); $table->unsignedSmallInteger('unsigned_small_integer_nullable')->nullable(); $table->unsignedSmallInteger('unsigned_small_integer_not_nullable'); $table->unsignedMediumInteger('unsigned_medium_integer_nullable')->nullable(); $table->unsignedMediumInteger('unsigned_medium_integer_not_nullable'); $table->unsignedBigInteger('unsigned_big_integer_nullable')->nullable(); $table->unsignedBigInteger('unsigned_big_integer_not_nullable'); $table->float('float_nullable')->nullable(); $table->float('float_not_nullable'); $table->double('double_nullable')->nullable(); $table->double('double_not_nullable'); $table->decimal('decimal_nullable')->nullable(); $table->decimal('decimal_not_nullable'); $table->boolean('boolean_nullable')->nullable(); $table->boolean('boolean_not_nullable'); $table->enum('enum_nullable', ['foo', 'bar'])->nullable(); $table->enum('enum_not_nullable', ['foo', 'bar']); $table->json('json_nullable')->nullable(); $table->json('json_not_nullable'); $table->jsonb('jsonb_nullable')->nullable(); $table->jsonb('jsonb_not_nullable'); $table->date('date_nullable')->nullable(); $table->date('date_not_nullable'); $table->dateTime('datetime_nullable')->nullable(); $table->dateTime('datetime_not_nullable'); $table->dateTimeTz('datetimetz_nullable')->nullable(); $table->dateTimeTz('datetimetz_not_nullable'); $table->time('time_nullable')->nullable(); $table->time('time_not_nullable'); $table->timeTz('timetz_nullable')->nullable(); $table->timeTz('timetz_not_nullable'); $table->timestamp('timestamp_nullable')->nullable(); $table->timestamp('timestamp_not_nullable'); $table->timestampTz('timestamptz_nullable')->nullable(); $table->timestampTz('timestamptz_not_nullable'); $table->year('year_nullable')->nullable(); $table->year('year_not_nullable'); $table->binary('binary_nullable')->nullable(); $table->binary('binary_not_nullable'); $table->uuid('uuid_nullable')->nullable(); $table->uuid('uuid_not_nullable'); $table->ipAddress('ipaddress_nullable')->nullable(); $table->ipAddress('ipaddress_not_nullable'); $table->macAddress('macaddress_nullable')->nullable(); $table->macAddress('macaddress_not_nullable'); $table->timestamps(); }); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/migrations/____advanced_casts_table.php
tests/Console/ModelsCommand/migrations/____advanced_casts_table.php
<?php declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AdvancedCastsTable extends Migration { public function up(): void { Schema::create('advanced_casts', static function (Blueprint $table) { $table->string('cast_to_date_serialization'); $table->string('cast_to_datetime_serialization'); $table->string('cast_to_custom_datetime'); $table->string('cast_to_immutable_date'); $table->string('cast_to_immutable_custom_datetime'); $table->string('cast_to_immutable_datetime'); $table->string('cast_to_timestamp'); $table->string('cast_to_encrypted'); $table->string('cast_to_encrypted_array'); $table->string('cast_to_encrypted_collection'); $table->string('cast_to_encrypted_json'); $table->string('cast_to_encrypted_object'); $table->string('cast_to_as_collection'); $table->string('cast_to_as_enum_collection'); $table->string('cast_to_as_array_object'); }); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/migrations/____belongs_to_variation_table.php
tests/Console/ModelsCommand/migrations/____belongs_to_variation_table.php
<?php declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class BelongsToVariationTable extends Migration { public function up(): void { Schema::create('belongs_to_variations', function (Blueprint $table) { $table->bigIncrements('id'); $table->integer('not_null_column_with_foreign_key_constraint'); $table->integer('not_null_column_with_no_foreign_key_constraint'); $table->integer('nullable_column_with_foreign_key_constraint')->nullable(); $table->integer('nullable_column_with_no_foreign_key_constraint')->nullable(); $table->foreign('not_null_column_with_foreign_key_constraint')->references('id')->on('belongs_to_variations'); $table->foreign('nullable_column_with_foreign_key_constraint')->references('id')->on('belongs_to_variations'); }); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/migrations/____backed_attribute_table.php
tests/Console/ModelsCommand/migrations/____backed_attribute_table.php
<?php declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class BackedAttributeTable extends Migration { public function up(): void { Schema::create('backed_attributes', function (Blueprint $table) { $table->bigIncrements('id'); $table->string('name'); $table->string('name_read'); $table->string('name_write'); }); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/AllowGlobDirectory/Test.php
tests/Console/ModelsCommand/AllowGlobDirectory/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AllowGlobDirectory; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; final class Test extends AbstractModelsCommand { /** @var string */ private $cwd; protected function setUp(): void { parent::setUp(); $this->cwd = getcwd(); } protected function tearDown(): void { chdir($this->cwd); parent::tearDown(); } public function test(): void { $command = $this->app->make(ModelsCommand::class); chdir(__DIR__); $tester = $this->runCommand($command, [ '--dir' => ['Services/*/Models'], '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/AllowGlobDirectory/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/AllowGlobDirectory/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AllowGlobDirectory\Services\Post\Models; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property string|null $char_nullable * @property string $char_not_nullable * @property string|null $string_nullable * @property string $string_not_nullable * @property string|null $text_nullable * @property string $text_not_nullable * @property string|null $medium_text_nullable * @property string $medium_text_not_nullable * @property string|null $long_text_nullable * @property string $long_text_not_nullable * @property int|null $integer_nullable * @property int $integer_not_nullable * @property int|null $tiny_integer_nullable * @property int $tiny_integer_not_nullable * @property int|null $small_integer_nullable * @property int $small_integer_not_nullable * @property int|null $medium_integer_nullable * @property int $medium_integer_not_nullable * @property int|null $big_integer_nullable * @property int $big_integer_not_nullable * @property int|null $unsigned_integer_nullable * @property int $unsigned_integer_not_nullable * @property int|null $unsigned_tiny_integer_nullable * @property int $unsigned_tiny_integer_not_nullable * @property int|null $unsigned_small_integer_nullable * @property int $unsigned_small_integer_not_nullable * @property int|null $unsigned_medium_integer_nullable * @property int $unsigned_medium_integer_not_nullable * @property int|null $unsigned_big_integer_nullable * @property int $unsigned_big_integer_not_nullable * @property float|null $float_nullable * @property float $float_not_nullable * @property float|null $double_nullable * @property float $double_not_nullable * @property numeric|null $decimal_nullable * @property numeric $decimal_not_nullable * @property int|null $boolean_nullable * @property int $boolean_not_nullable * @property string|null $enum_nullable * @property string $enum_not_nullable * @property string|null $json_nullable * @property string $json_not_nullable * @property string|null $jsonb_nullable * @property string $jsonb_not_nullable * @property string|null $date_nullable * @property string $date_not_nullable * @property string|null $datetime_nullable * @property string $datetime_not_nullable * @property string|null $datetimetz_nullable * @property string $datetimetz_not_nullable * @property string|null $time_nullable * @property string $time_not_nullable * @property string|null $timetz_nullable * @property string $timetz_not_nullable * @property string|null $timestamp_nullable * @property string $timestamp_not_nullable * @property string|null $timestamptz_nullable * @property string $timestamptz_not_nullable * @property int|null $year_nullable * @property int $year_not_nullable * @property string|null $binary_nullable * @property string $binary_not_nullable * @property string|null $uuid_nullable * @property string $uuid_not_nullable * @property string|null $ipaddress_nullable * @property string $ipaddress_not_nullable * @property string|null $macaddress_nullable * @property string $macaddress_not_nullable * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereId($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNullable($value) * @mixin \Eloquent */ class Post extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/AllowGlobDirectory/Services/Post/Models/Post.php
tests/Console/ModelsCommand/AllowGlobDirectory/Services/Post/Models/Post.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AllowGlobDirectory\Services\Post\Models; use Illuminate\Database\Eloquent\Model; class Post extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Comment/Test.php
tests/Console/ModelsCommand/Comment/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Comment; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Comment/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/Comment/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Comment\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\HasOne; use Illuminate\Database\Eloquent\Relations\MorphTo; /** * @property int $id * @property string $both_same_name I'm a getter * @property string $both_without_getter_comment * @property-read string $faker_comment * @property-read string $format_comment There is format comment, success. * @property-read string $format_comment_line_two There is format comment, success. * This is second line, success too. * @property-read string $many_format_comment There is format comment, success. * @property-read string $not_comment * @property-read \Illuminate\Database\Eloquent\Collection<int, Simple> $relationHasMany HasMany relations. * @property-read int|null $relation_has_many_count * @property-read bool|null $relation_has_many_exists * @property-read Simple|null $relationHasOne Others relations. * @property-read Model|\Eloquent $relationMorphTo MorphTo relations. * @property-write mixed $first_name Set the user's first name. * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple active() Scope a query to only include active users. * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple whereId($value) * @mixin \Eloquent */ class Simple extends Model { /** * There is not comment. * * @return string */ public function getNotCommentAttribute(): string { } /** * comment There is not format comment, invalid. * * @return string */ public function getFakerCommentAttribute(): string { } /** * @comment There is format comment, success. * * @return string */ public function getFormatCommentAttribute(): string { } /** * @comment There is format comment, success. * This is second line, success too. * * @return string */ public function getFormatCommentLineTwoAttribute(): string { } /** * @comment There is format comment, success. * @comment This is others format comment, invalid. * * @return string */ public function getManyFormatCommentAttribute(): string { } /** * @comment Set the user's first name. * @param $value */ public function setFirstNameAttribute($value) { } /** * @comment Scope a query to only include active users. * * @param $query * @return mixed */ public function scopeActive($query) { return $query; } /** * @comment HasMany relations. * * @return HasMany */ public function relationHasMany(): HasMany { return $this->hasMany(Simple::class); } /** * @comment MorphTo relations. * @return MorphTo */ public function relationMorphTo(): MorphTo { return $this->morphTo(); } /** * @comment Others relations. * @return HasOne */ public function relationHasOne(): HasOne { return $this->hasOne(Simple::class); } /** * @comment I'm a setter */ public function setBothSameNameAttribute(): void { } /** * @comment I'm a getter * @return string */ public function getBothSameNameAttribute(): string { } /** * @comment I'm a setter */ public function setBothWithoutGetterCommentAttribute(): void { } /** * @return string */ public function getBothWithoutGetterCommentAttribute(): string { } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Comment/Models/Simple.php
tests/Console/ModelsCommand/Comment/Models/Simple.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Comment\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\HasOne; use Illuminate\Database\Eloquent\Relations\MorphTo; class Simple extends Model { /** * There is not comment. * * @return string */ public function getNotCommentAttribute(): string { } /** * comment There is not format comment, invalid. * * @return string */ public function getFakerCommentAttribute(): string { } /** * @comment There is format comment, success. * * @return string */ public function getFormatCommentAttribute(): string { } /** * @comment There is format comment, success. * This is second line, success too. * * @return string */ public function getFormatCommentLineTwoAttribute(): string { } /** * @comment There is format comment, success. * @comment This is others format comment, invalid. * * @return string */ public function getManyFormatCommentAttribute(): string { } /** * @comment Set the user's first name. * @param $value */ public function setFirstNameAttribute($value) { } /** * @comment Scope a query to only include active users. * * @param $query * @return mixed */ public function scopeActive($query) { return $query; } /** * @comment HasMany relations. * * @return HasMany */ public function relationHasMany(): HasMany { return $this->hasMany(Simple::class); } /** * @comment MorphTo relations. * @return MorphTo */ public function relationMorphTo(): MorphTo { return $this->morphTo(); } /** * @comment Others relations. * @return HasOne */ public function relationHasOne(): HasOne { return $this->hasOne(Simple::class); } /** * @comment I'm a setter */ public function setBothSameNameAttribute(): void { } /** * @comment I'm a getter * @return string */ public function getBothSameNameAttribute(): string { } /** * @comment I'm a setter */ public function setBothWithoutGetterCommentAttribute(): void { } /** * @return string */ public function getBothWithoutGetterCommentAttribute(): string { } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/SimpleCasts/Test.php
tests/Console/ModelsCommand/SimpleCasts/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\SimpleCasts; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/SimpleCasts/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/SimpleCasts/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\SimpleCasts\Models; use Illuminate\Database\Eloquent\Model; /** * @property int $cast_to_int * @property int $cast_to_integer * @property float $cast_to_real * @property float $cast_to_float * @property float $cast_to_double * @property numeric $cast_to_decimal * @property string $cast_to_string * @property bool $cast_to_bool * @property bool $cast_to_boolean * @property object $cast_to_object * @property array<array-key, mixed> $cast_to_array * @property array<array-key, mixed> $cast_to_json * @property \Illuminate\Support\Collection<array-key, mixed> $cast_to_collection * @property \Illuminate\Support\Carbon $cast_to_date * @property \Illuminate\Support\Carbon $cast_to_datetime * @property \Illuminate\Support\Carbon $cast_to_date_serialization * @property \Illuminate\Support\Carbon $cast_to_datetime_serialization * @property \Illuminate\Support\Carbon $cast_to_custom_datetime * @property \Carbon\CarbonImmutable $cast_to_immutable_date * @property \Carbon\CarbonImmutable $cast_to_immutable_date_serialization * @property \Carbon\CarbonImmutable $cast_to_immutable_custom_datetime * @property \Carbon\CarbonImmutable $cast_to_immutable_datetime * @property \Carbon\CarbonImmutable $cast_to_immutable_datetime_serialization * @property int $cast_to_timestamp * @property string $cast_to_encrypted * @property array<array-key, mixed> $cast_to_encrypted_array * @property \Illuminate\Support\Collection<array-key, mixed> $cast_to_encrypted_collection * @property array<array-key, mixed> $cast_to_encrypted_json * @property object $cast_to_encrypted_object * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast query() * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToArray($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToBool($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToBoolean($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToCollection($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToCustomDatetime($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToDate($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToDateSerialization($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToDatetime($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToDatetimeSerialization($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToDecimal($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToDouble($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToEncrypted($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToEncryptedArray($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToEncryptedCollection($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToEncryptedJson($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToEncryptedObject($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToFloat($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToImmutableCustomDatetime($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToImmutableDate($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToImmutableDateSerialization($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToImmutableDatetime($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToImmutableDatetimeSerialization($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToInt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToInteger($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToJson($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToObject($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToReal($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToString($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|SimpleCast whereCastToTimestamp($value) * @mixin \Eloquent */ class SimpleCast extends Model { protected $casts = [ 'cast_to_int' => 'int', 'cast_to_integer' => 'integer', 'cast_to_real' => 'real', 'cast_to_float' => 'float', 'cast_to_double' => 'double', 'cast_to_decimal' => 'decimal:4', 'cast_to_string' => 'string', 'cast_to_bool' => 'bool', 'cast_to_boolean' => 'boolean', 'cast_to_object' => 'object', 'cast_to_array' => 'array', 'cast_to_json' => 'json', 'cast_to_collection' => 'collection', 'cast_to_enum_collection' => 'collection', 'cast_to_date' => 'date', 'cast_to_datetime' => 'datetime', 'cast_to_date_serialization' => 'date:Y-m-d', 'cast_to_datetime_serialization' => 'datetime:Y-m-d H:i:s', 'cast_to_custom_datetime' => 'custom_datetime:Y-m-d H:i:s', 'cast_to_immutable_date' => 'immutable_date', 'cast_to_immutable_date_serialization' => 'immutable_date:Y-m-d', 'cast_to_immutable_custom_datetime' => 'immutable_custom_datetime:Y-m-d H:i:s', 'cast_to_immutable_datetime' => 'immutable_datetime', 'cast_to_immutable_datetime_serialization' => 'immutable_datetime:Y-m-d H:i:s', 'cast_to_timestamp' => 'timestamp', 'cast_to_encrypted' => 'encrypted', 'cast_to_encrypted_array' => 'encrypted:array', 'cast_to_encrypted_collection' => 'encrypted:collection', 'cast_to_encrypted_json' => 'encrypted:json', 'cast_to_encrypted_object' => 'encrypted:object', 'cast_to_hashed' => 'hashed', ]; }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/SimpleCasts/Models/SimpleCast.php
tests/Console/ModelsCommand/SimpleCasts/Models/SimpleCast.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\SimpleCasts\Models; use Illuminate\Database\Eloquent\Model; class SimpleCast extends Model { protected $casts = [ 'cast_to_int' => 'int', 'cast_to_integer' => 'integer', 'cast_to_real' => 'real', 'cast_to_float' => 'float', 'cast_to_double' => 'double', 'cast_to_decimal' => 'decimal:4', 'cast_to_string' => 'string', 'cast_to_bool' => 'bool', 'cast_to_boolean' => 'boolean', 'cast_to_object' => 'object', 'cast_to_array' => 'array', 'cast_to_json' => 'json', 'cast_to_collection' => 'collection', 'cast_to_enum_collection' => 'collection', 'cast_to_date' => 'date', 'cast_to_datetime' => 'datetime', 'cast_to_date_serialization' => 'date:Y-m-d', 'cast_to_datetime_serialization' => 'datetime:Y-m-d H:i:s', 'cast_to_custom_datetime' => 'custom_datetime:Y-m-d H:i:s', 'cast_to_immutable_date' => 'immutable_date', 'cast_to_immutable_date_serialization' => 'immutable_date:Y-m-d', 'cast_to_immutable_custom_datetime' => 'immutable_custom_datetime:Y-m-d H:i:s', 'cast_to_immutable_datetime' => 'immutable_datetime', 'cast_to_immutable_datetime_serialization' => 'immutable_datetime:Y-m-d H:i:s', 'cast_to_timestamp' => 'timestamp', 'cast_to_encrypted' => 'encrypted', 'cast_to_encrypted_array' => 'encrypted:array', 'cast_to_encrypted_collection' => 'encrypted:collection', 'cast_to_encrypted_json' => 'encrypted:json', 'cast_to_encrypted_object' => 'encrypted:object', 'cast_to_hashed' => 'hashed', ]; }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilderWithFqn/Test.php
tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilderWithFqn/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilderWithFqn; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilderWithFqn/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilderWithFqn/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilderWithFqn\Models; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilderWithFqn\Builders\PostExternalQueryBuilder; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property string|null $char_nullable * @property string $char_not_nullable * @property string|null $string_nullable * @property string $string_not_nullable * @property string|null $text_nullable * @property string $text_not_nullable * @property string|null $medium_text_nullable * @property string $medium_text_not_nullable * @property string|null $long_text_nullable * @property string $long_text_not_nullable * @property int|null $integer_nullable * @property int $integer_not_nullable * @property int|null $tiny_integer_nullable * @property int $tiny_integer_not_nullable * @property int|null $small_integer_nullable * @property int $small_integer_not_nullable * @property int|null $medium_integer_nullable * @property int $medium_integer_not_nullable * @property int|null $big_integer_nullable * @property int $big_integer_not_nullable * @property int|null $unsigned_integer_nullable * @property int $unsigned_integer_not_nullable * @property int|null $unsigned_tiny_integer_nullable * @property int $unsigned_tiny_integer_not_nullable * @property int|null $unsigned_small_integer_nullable * @property int $unsigned_small_integer_not_nullable * @property int|null $unsigned_medium_integer_nullable * @property int $unsigned_medium_integer_not_nullable * @property int|null $unsigned_big_integer_nullable * @property int $unsigned_big_integer_not_nullable * @property float|null $float_nullable * @property float $float_not_nullable * @property float|null $double_nullable * @property float $double_not_nullable * @property numeric|null $decimal_nullable * @property numeric $decimal_not_nullable * @property int|null $boolean_nullable * @property int $boolean_not_nullable * @property string|null $enum_nullable * @property string $enum_not_nullable * @property string|null $json_nullable * @property string $json_not_nullable * @property string|null $jsonb_nullable * @property string $jsonb_not_nullable * @property string|null $date_nullable * @property string $date_not_nullable * @property string|null $datetime_nullable * @property string $datetime_not_nullable * @property string|null $datetimetz_nullable * @property string $datetimetz_not_nullable * @property string|null $time_nullable * @property string $time_not_nullable * @property string|null $timetz_nullable * @property string $timetz_not_nullable * @property string|null $timestamp_nullable * @property string $timestamp_not_nullable * @property string|null $timestamptz_nullable * @property string $timestamptz_not_nullable * @property int|null $year_nullable * @property int $year_not_nullable * @property string|null $binary_nullable * @property string $binary_not_nullable * @property string|null $uuid_nullable * @property string $uuid_not_nullable * @property string|null $ipaddress_nullable * @property string $ipaddress_not_nullable * @property string|null $macaddress_nullable * @property string $macaddress_not_nullable * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @method static PostExternalQueryBuilder<static>|Post isActive() * @method static PostExternalQueryBuilder<static>|Post isLoadingWith(?string $with) * @method static PostExternalQueryBuilder<static>|Post isStatus(string $status) * @method static PostExternalQueryBuilder<static>|Post newModelQuery() * @method static PostExternalQueryBuilder<static>|Post newQuery() * @method static PostExternalQueryBuilder<static>|Post query() * @method static PostExternalQueryBuilder<static>|Post whereBigIntegerNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereBigIntegerNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereBinaryNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereBinaryNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereBooleanNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereBooleanNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereCharNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereCharNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereCreatedAt($value) * @method static PostExternalQueryBuilder<static>|Post whereDateNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereDateNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereDatetimeNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereDatetimeNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereDatetimetzNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereDatetimetzNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereDecimalNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereDecimalNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereDoubleNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereDoubleNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereEnumNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereEnumNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereFloatNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereFloatNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereId($value) * @method static PostExternalQueryBuilder<static>|Post whereIntegerNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereIntegerNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereIpaddressNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereIpaddressNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereJsonNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereJsonNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereJsonbNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereJsonbNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereLongTextNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereLongTextNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereMacaddressNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereMacaddressNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereMediumIntegerNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereMediumIntegerNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereMediumTextNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereMediumTextNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereSmallIntegerNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereSmallIntegerNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereStringNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereStringNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereTextNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereTextNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereTimeNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereTimeNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereTimestampNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereTimestampNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereTimestamptzNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereTimestamptzNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereTimetzNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereTimetzNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereTinyIntegerNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereTinyIntegerNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereUnsignedBigIntegerNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereUnsignedBigIntegerNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereUnsignedIntegerNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereUnsignedIntegerNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereUnsignedMediumIntegerNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereUnsignedMediumIntegerNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereUnsignedSmallIntegerNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereUnsignedSmallIntegerNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereUnsignedTinyIntegerNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereUnsignedTinyIntegerNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereUpdatedAt($value) * @method static PostExternalQueryBuilder<static>|Post whereUuidNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereUuidNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereYearNotNullable($value) * @method static PostExternalQueryBuilder<static>|Post whereYearNullable($value) * @method static PostExternalQueryBuilder<static>|Post withBool(?bool $booleanVar) * @method static PostExternalQueryBuilder<static>|Post withBoolDifferently(?bool $booleanVar) * @method static PostExternalQueryBuilder<static>|Post withBoolTypeHinted(bool $booleanVar) * @method static PostExternalQueryBuilder<static>|Post withMixedOption($option) * @method static PostExternalQueryBuilder<static>|Post withNullAndAssignmentTestCommand(?\Barryvdh\LaravelIdeHelper\Console\ModelsCommand $testCommand = null) * @method static PostExternalQueryBuilder<static>|Post withNullTestCommand(?\Barryvdh\LaravelIdeHelper\Console\ModelsCommand $testCommand) * @method static PostExternalQueryBuilder<static>|Post withNullTestCommandInDocBlock($testCommand) * @method static PostExternalQueryBuilder<static>|Post withSomeone($someone) * @method static PostExternalQueryBuilder<static>|Post withTestCommand(\Barryvdh\LaravelIdeHelper\Console\ModelsCommand $testCommand) * @method static PostExternalQueryBuilder<static>|Post withTheNumber(?int $number) * @method static PostExternalQueryBuilder<static>|Post withTheNumberDifferently(?int $number) * @mixin \Eloquent */ class Post extends Model { public function newEloquentBuilder($query): PostExternalQueryBuilder { return new PostExternalQueryBuilder($query); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilderWithFqn/Builders/PostExternalQueryBuilder.php
tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilderWithFqn/Builders/PostExternalQueryBuilder.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilderWithFqn\Builders; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Illuminate\Database\Eloquent\Builder; class PostExternalQueryBuilder extends Builder { public function isActive(): self { return $this; } public function isStatus(string $status): self { return $this; } public function isLoadingWith(?string $with): self { return $this; } /** * @param int|null $number * @return $this */ public function withTheNumber($number): self { return $this; } /** * @param integer|null $number * @return $this */ public function withTheNumberDifferently($number): self { return $this; } /** * @param bool|null $number * @return $this */ public function withBool($booleanVar): self { return $this; } /** * @param bool|null $number * @return $this */ public function withBoolDifferently($booleanVar): self { return $this; } public function withBoolTypeHinted(bool $booleanVar): self { return $this; } /** * @param int|string $someone * @return $this */ public function withSomeone($someone): self { return $this; } /** * @param mixed $option * @return $this */ public function withMixedOption($option): self { return $this; } public function withTestCommand(ModelsCommand $testCommand): self { return $this; } public function withNullTestCommand(?ModelsCommand $testCommand): self { return $this; } public function withNullAndAssignmentTestCommand(?ModelsCommand $testCommand = null): self { return $this; } /** * @param ModelsCommand $testCommand * @return $this */ public function withNullTestCommandInDocBlock($testCommand): self { return $this; } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilderWithFqn/Models/Post.php
tests/Console/ModelsCommand/GeneratePhpdocWithExternalEloquentBuilderWithFqn/Models/Post.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilderWithFqn\Models; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithExternalEloquentBuilderWithFqn\Builders\PostExternalQueryBuilder; use Illuminate\Database\Eloquent\Model; class Post extends Model { public function newEloquentBuilder($query): PostExternalQueryBuilder { return new PostExternalQueryBuilder($query); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/SoftDeletes/Test.php
tests/Console/ModelsCommand/SoftDeletes/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\SoftDeletes; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/SoftDeletes/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/SoftDeletes/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\SoftDeletes\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * @property int $id * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple whereId($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple withTrashed(bool $withTrashed = true) * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple withoutTrashed() * @mixin \Eloquent */ class Simple extends Model { use SoftDeletes; }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/SoftDeletes/Models/Simple.php
tests/Console/ModelsCommand/SoftDeletes/Models/Simple.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\SoftDeletes\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Simple extends Model { use SoftDeletes; }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/ModelHooks/Test.php
tests/Console/ModelsCommand/ModelHooks/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks\Hooks\CustomMethod; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks\Hooks\CustomProperty; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks\Hooks\UnsetMethod; class Test extends AbstractModelsCommand { protected function getEnvironmentSetUp($app) { parent::getEnvironmentSetUp($app); $app['config']->set('ide-helper', [ 'model_locations' => [ // This is calculated from the base_path() which points to // vendor/orchestra/testbench-core/laravel '/../../../../tests/Console/ModelsCommand/ModelHooks/Models', ], 'model_hooks' => [ CustomProperty::class, CustomMethod::class, UnsetMethod::class, ], ]); } public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/ModelHooks/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/ModelHooks/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks\Models; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property-read string $custom * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple custom($custom) * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple whereId($value) * @mixin \Eloquent */ class Simple extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/ModelHooks/Hooks/UnsetMethod.php
tests/Console/ModelsCommand/ModelHooks/Hooks/UnsetMethod.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks\Hooks; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface; use Illuminate\Database\Eloquent\Model; class UnsetMethod implements ModelHookInterface { public function run(ModelsCommand $command, Model $model): void { $command->unsetMethod('newmodelquery'); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/ModelHooks/Hooks/CustomProperty.php
tests/Console/ModelsCommand/ModelHooks/Hooks/CustomProperty.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks\Hooks; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface; use Illuminate\Database\Eloquent\Model; class CustomProperty implements ModelHookInterface { public function run(ModelsCommand $command, Model $model): void { $command->setProperty('custom', 'string', true, false); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/ModelHooks/Hooks/CustomMethod.php
tests/Console/ModelsCommand/ModelHooks/Hooks/CustomMethod.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks\Hooks; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; class CustomMethod implements ModelHookInterface { public function run(ModelsCommand $command, Model $model): void { $command->setMethod('custom', $command->getMethodType($model, Builder::class), ['$custom']); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/ModelHooks/Models/Simple.php
tests/Console/ModelsCommand/ModelHooks/Models/Simple.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks\Models; use Illuminate\Database\Eloquent\Model; class Simple extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Variadic/Test.php
tests/Console/ModelsCommand/Variadic/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Variadic; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Variadic/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/Variadic/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Variadic\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @method static Builder<static>|Simple newModelQuery() * @method static Builder<static>|Simple newQuery() * @method static Builder<static>|Simple query() * @method static Builder<static>|Simple whereId($value) * @method static Builder<static>|Simple whereTypedVariadic(int ...$values) * @method static Builder<static>|Simple whereVariadic(...$values) * @mixin \Eloquent */ class Simple extends Model { public function scopeWhereVariadic(Builder $query, ...$values): void { } public function scopeWhereTypedVariadic(Builder $query, int ...$values): void { } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Variadic/Models/Simple.php
tests/Console/ModelsCommand/Variadic/Models/Simple.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Variadic\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; class Simple extends Model { public function scopeWhereVariadic(Builder $query, ...$values): void { } public function scopeWhereTypedVariadic(Builder $query, int ...$values): void { } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithForcedFqn/Test.php
tests/Console/ModelsCommand/GeneratePhpdocWithForcedFqn/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { protected function getEnvironmentSetUp($app) { parent::getEnvironmentSetUp($app); $app['config']->set('ide-helper.force_fqn', true); } public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithForcedFqn/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/GeneratePhpdocWithForcedFqn/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\SoftDeletes; /** * @property int $id * @property string|null $char_nullable * @property string $char_not_nullable * @property string|null $string_nullable * @property string $string_not_nullable * @property string|null $text_nullable * @property string $text_not_nullable * @property string|null $medium_text_nullable * @property string $medium_text_not_nullable * @property string|null $long_text_nullable * @property string $long_text_not_nullable * @property int|null $integer_nullable * @property int $integer_not_nullable * @property int|null $tiny_integer_nullable * @property int $tiny_integer_not_nullable * @property int|null $small_integer_nullable * @property int $small_integer_not_nullable * @property int|null $medium_integer_nullable * @property int $medium_integer_not_nullable * @property int|null $big_integer_nullable * @property int $big_integer_not_nullable * @property int|null $unsigned_integer_nullable * @property int $unsigned_integer_not_nullable * @property int|null $unsigned_tiny_integer_nullable * @property int $unsigned_tiny_integer_not_nullable * @property int|null $unsigned_small_integer_nullable * @property int $unsigned_small_integer_not_nullable * @property int|null $unsigned_medium_integer_nullable * @property int $unsigned_medium_integer_not_nullable * @property int|null $unsigned_big_integer_nullable * @property int $unsigned_big_integer_not_nullable * @property float|null $float_nullable * @property float $float_not_nullable * @property float|null $double_nullable * @property float $double_not_nullable * @property numeric|null $decimal_nullable * @property numeric $decimal_not_nullable * @property int|null $boolean_nullable * @property int $boolean_not_nullable * @property string|null $enum_nullable * @property string $enum_not_nullable * @property string|null $json_nullable * @property string $json_not_nullable * @property string|null $jsonb_nullable * @property string $jsonb_not_nullable * @property string|null $date_nullable * @property string $date_not_nullable * @property string|null $datetime_nullable * @property string $datetime_not_nullable * @property string|null $datetimetz_nullable * @property string $datetimetz_not_nullable * @property string|null $time_nullable * @property string $time_not_nullable * @property string|null $timetz_nullable * @property string $timetz_not_nullable * @property string|null $timestamp_nullable * @property string $timestamp_not_nullable * @property string|null $timestamptz_nullable * @property string $timestamptz_not_nullable * @property int|null $year_nullable * @property int $year_not_nullable * @property string|null $binary_nullable * @property string $binary_not_nullable * @property string|null $uuid_nullable * @property string $uuid_not_nullable * @property string|null $ipaddress_nullable * @property string $ipaddress_not_nullable * @property string|null $macaddress_nullable * @property string $macaddress_not_nullable * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read \Illuminate\Database\Eloquent\Collection<int, \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post> $posts * @property-read int|null $posts_count * @property-read bool|null $posts_exists * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post null(string $unusedParam) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post query() * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereBinaryNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereBinaryNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereBooleanNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereBooleanNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereCharNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereCharNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereDateNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereDateNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereDatetimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereDatetimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereDatetimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereDatetimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereDecimalNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereDecimalNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereDoubleNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereDoubleNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereEnumNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereEnumNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereFloatNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereFloatNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereId($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereIpaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereIpaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereJsonNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereJsonNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereJsonbNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereJsonbNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereLongTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereLongTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereMacaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereMacaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereMediumTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereMediumTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereStringNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereStringNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereTimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereTimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereTimestampNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereTimestampNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereTimestamptzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereTimestamptzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereTimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereTimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUnsignedBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUnsignedBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUnsignedIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUnsignedIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUnsignedMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUnsignedMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUnsignedSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUnsignedSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUnsignedTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUnsignedTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUuidNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereUuidNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereYearNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post whereYearNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post withTrashed(bool $withTrashed = true) * @method static \Illuminate\Database\Eloquent\Builder<static>|\Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models\Post withoutTrashed() * @mixin \Eloquent */ class Post extends Model { use SoftDeletes; public function posts(): HasMany { return $this->hasMany(Post::class); } public function scopeNull($query, string $unusedParam) { return $query; } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GeneratePhpdocWithForcedFqn/Models/Post.php
tests/Console/ModelsCommand/GeneratePhpdocWithForcedFqn/Models/Post.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithForcedFqn\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\SoftDeletes; class Post extends Model { use SoftDeletes; public function posts(): HasMany { return $this->hasMany(Post::class); } public function scopeNull($query, string $unusedParam) { return $query; } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/ResetAndSmartReset/Test.php
tests/Console/ModelsCommand/ResetAndSmartReset/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ResetAndSmartReset; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function testNoReset(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } public function testReset(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, '--reset' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testNoReset__1.php
tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testNoReset__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ResetAndSmartReset\Models; use Illuminate\Database\Eloquent\Model; /** * Text of existing phpdoc * * @implements \ArrayAccess * @noinspection PhpUnreachableStatementInspection * @noinspection PhpUnnecessaryFullyQualifiedNameInspection * @property string $foo * @property-read string $bar * @method fooBar() * @property int $id * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple whereId($value) * @mixin \Eloquent */ class Simple extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testSmartReset__1.php
tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testSmartReset__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ResetAndSmartReset\Models; use Illuminate\Database\Eloquent\Model; /** * Text of existing phpdoc * * @property int $id * @method static \Illuminate\Database\Eloquent\Builder|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Simple query() * @method static \Illuminate\Database\Eloquent\Builder|Simple whereId($value) * @mixin \Eloquent */ class Simple extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testReset__1.php
tests/Console/ModelsCommand/ResetAndSmartReset/__snapshots__/Test__testReset__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ResetAndSmartReset\Models; use Illuminate\Database\Eloquent\Model; /** * Text of existing phpdoc * * @implements \ArrayAccess * @noinspection PhpUnreachableStatementInspection * @property int $id * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple whereId($value) * @mixin \Eloquent */ class Simple extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/ResetAndSmartReset/Models/Simple.php
tests/Console/ModelsCommand/ResetAndSmartReset/Models/Simple.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ResetAndSmartReset\Models; use Illuminate\Database\Eloquent\Model; /** * Text of existing phpdoc * * @implements \ArrayAccess * @noinspection PhpUnreachableStatementInspection * @noinspection PhpUnnecessaryFullyQualifiedNameInspection * @property string $foo * @property-read string $bar * @method fooBar() * @mixin \Eloquent */ class Simple extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GenerateBasicPhpdocFinal/Test.php
tests/Console/ModelsCommand/GenerateBasicPhpdocFinal/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GenerateBasicPhpdocFinal; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GenerateBasicPhpdocFinal/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/GenerateBasicPhpdocFinal/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GenerateBasicPhpdocFinal\Models; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property string|null $char_nullable * @property string $char_not_nullable * @property string|null $string_nullable * @property string $string_not_nullable * @property string|null $text_nullable * @property string $text_not_nullable * @property string|null $medium_text_nullable * @property string $medium_text_not_nullable * @property string|null $long_text_nullable * @property string $long_text_not_nullable * @property int|null $integer_nullable * @property int $integer_not_nullable * @property int|null $tiny_integer_nullable * @property int $tiny_integer_not_nullable * @property int|null $small_integer_nullable * @property int $small_integer_not_nullable * @property int|null $medium_integer_nullable * @property int $medium_integer_not_nullable * @property int|null $big_integer_nullable * @property int $big_integer_not_nullable * @property int|null $unsigned_integer_nullable * @property int $unsigned_integer_not_nullable * @property int|null $unsigned_tiny_integer_nullable * @property int $unsigned_tiny_integer_not_nullable * @property int|null $unsigned_small_integer_nullable * @property int $unsigned_small_integer_not_nullable * @property int|null $unsigned_medium_integer_nullable * @property int $unsigned_medium_integer_not_nullable * @property int|null $unsigned_big_integer_nullable * @property int $unsigned_big_integer_not_nullable * @property float|null $float_nullable * @property float $float_not_nullable * @property float|null $double_nullable * @property float $double_not_nullable * @property numeric|null $decimal_nullable * @property numeric $decimal_not_nullable * @property int|null $boolean_nullable * @property int $boolean_not_nullable * @property string|null $enum_nullable * @property string $enum_not_nullable * @property string|null $json_nullable * @property string $json_not_nullable * @property string|null $jsonb_nullable * @property string $jsonb_not_nullable * @property string|null $date_nullable * @property string $date_not_nullable * @property string|null $datetime_nullable * @property string $datetime_not_nullable * @property string|null $datetimetz_nullable * @property string $datetimetz_not_nullable * @property string|null $time_nullable * @property string $time_not_nullable * @property string|null $timetz_nullable * @property string $timetz_not_nullable * @property string|null $timestamp_nullable * @property string $timestamp_not_nullable * @property string|null $timestamptz_nullable * @property string $timestamptz_not_nullable * @property int|null $year_nullable * @property int $year_not_nullable * @property string|null $binary_nullable * @property string $binary_not_nullable * @property string|null $uuid_nullable * @property string $uuid_not_nullable * @property string|null $ipaddress_nullable * @property string $ipaddress_not_nullable * @property string|null $macaddress_nullable * @property string $macaddress_not_nullable * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereId($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNullable($value) * @mixin \Eloquent */ final class Post extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GenerateBasicPhpdocFinal/Models/Post.php
tests/Console/ModelsCommand/GenerateBasicPhpdocFinal/Models/Post.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GenerateBasicPhpdocFinal\Models; use Illuminate\Database\Eloquent\Model; final class Post extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/RelationCountProperties/Test.php
tests/Console/ModelsCommand/RelationCountProperties/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\RelationCountProperties; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { protected function getEnvironmentSetUp($app) { parent::getEnvironmentSetUp($app); $app['config']->set('ide-helper.write_model_relation_count_properties', false); $app['config']->set('ide-helper.write_model_relation_exists_properties', false); } public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/RelationCountProperties/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/RelationCountProperties/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\RelationCountProperties\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; /** * @property int $id * @property string|null $char_nullable * @property string $char_not_nullable * @property string|null $string_nullable * @property string $string_not_nullable * @property string|null $text_nullable * @property string $text_not_nullable * @property string|null $medium_text_nullable * @property string $medium_text_not_nullable * @property string|null $long_text_nullable * @property string $long_text_not_nullable * @property int|null $integer_nullable * @property int $integer_not_nullable * @property int|null $tiny_integer_nullable * @property int $tiny_integer_not_nullable * @property int|null $small_integer_nullable * @property int $small_integer_not_nullable * @property int|null $medium_integer_nullable * @property int $medium_integer_not_nullable * @property int|null $big_integer_nullable * @property int $big_integer_not_nullable * @property int|null $unsigned_integer_nullable * @property int $unsigned_integer_not_nullable * @property int|null $unsigned_tiny_integer_nullable * @property int $unsigned_tiny_integer_not_nullable * @property int|null $unsigned_small_integer_nullable * @property int $unsigned_small_integer_not_nullable * @property int|null $unsigned_medium_integer_nullable * @property int $unsigned_medium_integer_not_nullable * @property int|null $unsigned_big_integer_nullable * @property int $unsigned_big_integer_not_nullable * @property float|null $float_nullable * @property float $float_not_nullable * @property float|null $double_nullable * @property float $double_not_nullable * @property numeric|null $decimal_nullable * @property numeric $decimal_not_nullable * @property int|null $boolean_nullable * @property int $boolean_not_nullable * @property string|null $enum_nullable * @property string $enum_not_nullable * @property string|null $json_nullable * @property string $json_not_nullable * @property string|null $jsonb_nullable * @property string $jsonb_not_nullable * @property string|null $date_nullable * @property string $date_not_nullable * @property string|null $datetime_nullable * @property string $datetime_not_nullable * @property string|null $datetimetz_nullable * @property string $datetimetz_not_nullable * @property string|null $time_nullable * @property string $time_not_nullable * @property string|null $timetz_nullable * @property string $timetz_not_nullable * @property string|null $timestamp_nullable * @property string $timestamp_not_nullable * @property string|null $timestamptz_nullable * @property string $timestamptz_not_nullable * @property int|null $year_nullable * @property int $year_not_nullable * @property string|null $binary_nullable * @property string $binary_not_nullable * @property string|null $uuid_nullable * @property string $uuid_not_nullable * @property string|null $ipaddress_nullable * @property string $ipaddress_not_nullable * @property string|null $macaddress_nullable * @property string $macaddress_not_nullable * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read \Illuminate\Database\Eloquent\Collection<int, Post> $relationHasMany * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereId($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNullable($value) * @mixin \Eloquent */ class Post extends Model { public function relationHasMany(): HasMany { return $this->hasMany(Post::class); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/RelationCountProperties/Models/Post.php
tests/Console/ModelsCommand/RelationCountProperties/Models/Post.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\RelationCountProperties\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; class Post extends Model { public function relationHasMany(): HasMany { return $this->hasMany(Post::class); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/UnionTypes/Test.php
tests/Console/ModelsCommand/UnionTypes/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\UnionTypes; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/UnionTypes/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/UnionTypes/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\UnionTypes\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Query\Builder; /** * @property-read string|int|null $foo * @property-read \Illuminate\Database\Eloquent\Collection<int, UnionTypeModel> $withUnionTypeReturn * @property-read int|null $with_union_type_return_count * @property-read bool|null $with_union_type_return_exists * @method static \Illuminate\Database\Eloquent\Builder<static>|UnionTypeModel newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|UnionTypeModel newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|UnionTypeModel query() * @method static \Illuminate\Database\Eloquent\Builder<static>|UnionTypeModel withNullableUnionTypeParameter(string|int|null $bar) * @method static \Illuminate\Database\Eloquent\Builder<static>|UnionTypeModel withUnionTypeParameter(string|int $bar) * @mixin \Eloquent */ class UnionTypeModel extends Model { public function scopeWithUnionTypeParameter(Builder $query, string|int $bar): Builder { return $query->where('foo', $bar); } public function scopeWithNullableUnionTypeParameter(Builder $query, null|string|int $bar): Builder { return $query->where('foo', $bar); } public function withUnionTypeReturn(): HasMany|UnionTypeModel { return $this->hasMany(UnionTypeModel::class); } public function getFooAttribute(): string|int|null { return $this->getAttribute('foo'); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/UnionTypes/Models/UnionTypeModel.php
tests/Console/ModelsCommand/UnionTypes/Models/UnionTypeModel.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\UnionTypes\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Query\Builder; class UnionTypeModel extends Model { public function scopeWithUnionTypeParameter(Builder $query, string|int $bar): Builder { return $query->where('foo', $bar); } public function scopeWithNullableUnionTypeParameter(Builder $query, null|string|int $bar): Builder { return $query->where('foo', $bar); } public function withUnionTypeReturn(): HasMany|UnionTypeModel { return $this->hasMany(UnionTypeModel::class); } public function getFooAttribute(): string|int|null { return $this->getAttribute('foo'); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Factories/Test.php
tests/Console/ModelsCommand/Factories/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; use Closure; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; class Test extends AbstractModelsCommand { public function testFactory(): void { Factory::guessFactoryNamesUsing(static::getFactoryNameResolver()); $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertStringNotContainsString('not found', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } public static function getFactoryNameResolver(): Closure { // This mimics the default resolver, but with adjusted test namespaces. // Illuminate\Database\Eloquent\Factories\Factory::resolveFactoryName return function (string $modelName): string { $appNamespace = 'Barryvdh\\LaravelIdeHelper\\Tests\\Console\\ModelsCommand\\Factories\\'; $modelName = Str::startsWith($modelName, $appNamespace . 'Models\\') ? Str::after($modelName, $appNamespace . 'Models\\') : Str::after($modelName, $appNamespace); return $appNamespace . 'Factories\\' . $modelName . 'Factory'; }; } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Factories/__snapshots__/Test__testFactory__1.php
tests/Console/ModelsCommand/Factories/__snapshots__/Test__testFactory__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\CustomSpace\ModelWithCustomNamespaceFactory; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\CustomSpace\ModelWithCustomNamespaceFactory factory($count = null, $state = []) * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithCustomNamespace newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithCustomNamespace newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithCustomNamespace query() * @mixin \Eloquent */ class ModelWithCustomNamespace extends Model { use HasFactory; /** * Create a new factory instance for the model. * * @return \Illuminate\Database\Eloquent\Factories\Factory */ protected static function newFactory() { return ModelWithCustomNamespaceFactory::new(); } } <?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Factories\ModelWithFactoryFactory factory($count = null, $state = []) * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithFactory newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithFactory newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithFactory query() * @mixin \Eloquent */ class ModelWithFactory extends Model { use HasFactory; } <?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models; /** * @method static \Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Factories\ModelWithNestedFactoryFactory factory($count = null, $state = []) * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithNestedFactory newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithNestedFactory newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithNestedFactory query() * @mixin \Eloquent */ class ModelWithNestedFactory extends ModelWithFactory { } <?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithoutFactory newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithoutFactory newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|ModelWithoutFactory query() * @mixin \Eloquent */ class ModelWithoutFactory extends Model { use HasFactory; }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Factories/CustomSpace/ModelWithCustomNamespaceFactory.php
tests/Console/ModelsCommand/Factories/CustomSpace/ModelWithCustomNamespaceFactory.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\CustomSpace; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models\ModelWithCustomNamespace; use Illuminate\Database\Eloquent\Factories\Factory; class ModelWithCustomNamespaceFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = ModelWithCustomNamespace::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ // ]; } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Factories/Models/ModelWithNestedFactory.php
tests/Console/ModelsCommand/Factories/Models/ModelWithNestedFactory.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models; class ModelWithNestedFactory extends ModelWithFactory { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Factories/Models/ModelWithCustomNamespace.php
tests/Console/ModelsCommand/Factories/Models/ModelWithCustomNamespace.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\CustomSpace\ModelWithCustomNamespaceFactory; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class ModelWithCustomNamespace extends Model { use HasFactory; /** * Create a new factory instance for the model. * * @return \Illuminate\Database\Eloquent\Factories\Factory */ protected static function newFactory() { return ModelWithCustomNamespaceFactory::new(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Factories/Models/ModelWithFactory.php
tests/Console/ModelsCommand/Factories/Models/ModelWithFactory.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class ModelWithFactory extends Model { use HasFactory; }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Factories/Models/ModelWithoutFactory.php
tests/Console/ModelsCommand/Factories/Models/ModelWithoutFactory.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class ModelWithoutFactory extends Model { use HasFactory; }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Factories/Factories/ModelWithNestedFactoryFactory.php
tests/Console/ModelsCommand/Factories/Factories/ModelWithNestedFactoryFactory.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Factories; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models\ModelWithNestedFactory; use Illuminate\Database\Eloquent\Factories\Factory; class ModelWithNestedFactoryFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = ModelWithNestedFactory::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ // ]; } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Factories/Factories/ModelWithFactoryFactory.php
tests/Console/ModelsCommand/Factories/Factories/ModelWithFactoryFactory.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Factories; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Factories\Models\ModelWithFactory; use Illuminate\Database\Eloquent\Factories\Factory; class ModelWithFactoryFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = ModelWithFactory::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ // ]; } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/CustomCollection/Test.php
tests/Console/ModelsCommand/CustomCollection/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\CustomCollection; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/CustomCollection/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/CustomCollection/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\CustomCollection\Models; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\CustomCollection\Collections\SimpleCollection; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; /** * @property int $id * @property-read SimpleCollection<int, Simple> $relationHasMany * @property-read int|null $relation_has_many_count * @property-read bool|null $relation_has_many_exists * @method static SimpleCollection<int, static> all($columns = ['*']) * @method static SimpleCollection<int, static> get($columns = ['*']) * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple whereId($value) * @mixin \Eloquent */ class Simple extends Model { public function newCollection(array $models = []) { return new SimpleCollection($models); } public function relationHasMany(): HasMany { return $this->hasMany(Simple::class); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/CustomCollection/Collections/SimpleCollection.php
tests/Console/ModelsCommand/CustomCollection/Collections/SimpleCollection.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\CustomCollection\Collections; use Illuminate\Database\Eloquent\Collection; class SimpleCollection extends Collection { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/CustomCollection/Models/Simple.php
tests/Console/ModelsCommand/CustomCollection/Models/Simple.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\CustomCollection\Models; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\CustomCollection\Collections\SimpleCollection; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; class Simple extends Model { public function newCollection(array $models = []) { return new SimpleCollection($models); } public function relationHasMany(): HasMany { return $this->hasMany(Simple::class); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GenerateBasicPhpdocCamel/Test.php
tests/Console/ModelsCommand/GenerateBasicPhpdocCamel/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GenerateBasicPhpdocCamel; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { protected function getEnvironmentSetUp($app) { parent::getEnvironmentSetUp($app); $app['config']->set('ide-helper.model_camel_case_properties', true); } public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GenerateBasicPhpdocCamel/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/GenerateBasicPhpdocCamel/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GenerateBasicPhpdocCamel\Models; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property string|null $charNullable * @property string $charNotNullable * @property string|null $stringNullable * @property string $stringNotNullable * @property string|null $textNullable * @property string $textNotNullable * @property string|null $mediumTextNullable * @property string $mediumTextNotNullable * @property string|null $longTextNullable * @property string $longTextNotNullable * @property int|null $integerNullable * @property int $integerNotNullable * @property int|null $tinyIntegerNullable * @property int $tinyIntegerNotNullable * @property int|null $smallIntegerNullable * @property int $smallIntegerNotNullable * @property int|null $mediumIntegerNullable * @property int $mediumIntegerNotNullable * @property int|null $bigIntegerNullable * @property int $bigIntegerNotNullable * @property int|null $unsignedIntegerNullable * @property int $unsignedIntegerNotNullable * @property int|null $unsignedTinyIntegerNullable * @property int $unsignedTinyIntegerNotNullable * @property int|null $unsignedSmallIntegerNullable * @property int $unsignedSmallIntegerNotNullable * @property int|null $unsignedMediumIntegerNullable * @property int $unsignedMediumIntegerNotNullable * @property int|null $unsignedBigIntegerNullable * @property int $unsignedBigIntegerNotNullable * @property float|null $floatNullable * @property float $floatNotNullable * @property float|null $doubleNullable * @property float $doubleNotNullable * @property numeric|null $decimalNullable * @property numeric $decimalNotNullable * @property int|null $booleanNullable * @property int $booleanNotNullable * @property string|null $enumNullable * @property string $enumNotNullable * @property string|null $jsonNullable * @property string $jsonNotNullable * @property string|null $jsonbNullable * @property string $jsonbNotNullable * @property string|null $dateNullable * @property string $dateNotNullable * @property string|null $datetimeNullable * @property string $datetimeNotNullable * @property string|null $datetimetzNullable * @property string $datetimetzNotNullable * @property string|null $timeNullable * @property string $timeNotNullable * @property string|null $timetzNullable * @property string $timetzNotNullable * @property string|null $timestampNullable * @property string $timestampNotNullable * @property string|null $timestamptzNullable * @property string $timestamptzNotNullable * @property int|null $yearNullable * @property int $yearNotNullable * @property string|null $binaryNullable * @property string $binaryNotNullable * @property string|null $uuidNullable * @property string $uuidNotNullable * @property string|null $ipaddressNullable * @property string $ipaddressNotNullable * @property string|null $macaddressNullable * @property string $macaddressNotNullable * @property \Illuminate\Support\Carbon|null $createdAt * @property \Illuminate\Support\Carbon|null $updatedAt * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBinaryNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereBooleanNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCharNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDateNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDatetimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDecimalNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereDoubleNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereEnumNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereFloatNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereId($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereIpaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereJsonbNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereLongTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMacaddressNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereMediumTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereStringNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTextNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimeNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestampNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimestamptzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTimetzNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedBigIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedMediumIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedSmallIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUnsignedTinyIntegerNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereUuidNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNotNullable($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|Post whereYearNullable($value) * @mixin \Eloquent */ class Post extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/GenerateBasicPhpdocCamel/Models/Post.php
tests/Console/ModelsCommand/GenerateBasicPhpdocCamel/Models/Post.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GenerateBasicPhpdocCamel\Models; use Illuminate\Database\Eloquent\Model; class Post extends Model { }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Attributes/Test.php
tests/Console/ModelsCommand/Attributes/Test.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Attributes; use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\AbstractModelsCommand; class Test extends AbstractModelsCommand { public function test(): void { $command = $this->app->make(ModelsCommand::class); $tester = $this->runCommand($command, [ '--write' => true, ]); $this->assertSame(0, $tester->getStatusCode()); $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); $this->assertMatchesMockedSnapshot(); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Attributes/__snapshots__/Test__test__1.php
tests/Console/ModelsCommand/Attributes/__snapshots__/Test__test__1.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Attributes\Models; use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property string|null $name * @property string|null $name_read * @property string|null $name_write * @property-read string|null $non_backed_get * @property-write string|null $non_backed_set * @method static \Illuminate\Database\Eloquent\Builder<static>|BackedAttribute newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|BackedAttribute newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|BackedAttribute query() * @method static \Illuminate\Database\Eloquent\Builder<static>|BackedAttribute whereId($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|BackedAttribute whereName($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|BackedAttribute whereNameRead($value) * @method static \Illuminate\Database\Eloquent\Builder<static>|BackedAttribute whereNameWrite($value) * @mixin \Eloquent */ class BackedAttribute extends Model { protected function name(): Attribute { return new Attribute( function (?string $name): ?string { return $name; }, function (?string $name): ?string { return $name; } ); } protected function nameRead(): Attribute { return new Attribute( function (?string $name): ?string { return $name; }, ); } protected function nameWrite(): Attribute { return new Attribute( set: function (?string $name): ?string { return $name; }, ); } protected function nonBackedSet(): Attribute { return new Attribute( set: function (?string $name): ?string { return $name; }, ); } protected function nonBackedGet(): Attribute { return new Attribute( get: function (): ?string { return 'test'; }, ); } } <?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Attributes\Models; use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property int $diverging_type_hinted_get_and_set * @property string|null $name * @property-read mixed $non_type_hinted_get * @property mixed $non_type_hinted_get_and_set * @property-write mixed $non_type_hinted_set * @property-write mixed $parameterless_set * @property-read string|null $type_hinted_get * @property string|null $type_hinted_get_and_set * @property-write string|null $type_hinted_set * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple newQuery() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple query() * @method static \Illuminate\Database\Eloquent\Builder<static>|Simple whereId($value) * @mixin \Eloquent */ class Simple extends Model { // With a backed property protected function name(): Attribute { return new Attribute( function (?string $name): ?string { return $name; }, function (?string $name): ?string { return $name; } ); } // Without backed properties protected function typeHintedGetAndSet(): Attribute { return new Attribute( function (): ?string { return $this->name; }, function (?string $name) { $this->name = $name; } ); } protected function divergingTypeHintedGetAndSet(): Attribute { return new Attribute( function (): int { return strlen($this->name); }, function (?string $name) { $this->name = $name; } ); } protected function typeHintedGet(): Attribute { return Attribute::get(function (): ?string { return $this->name; }); } protected function typeHintedSet(): Attribute { return Attribute::set(function (?string $name) { $this->name = $name; }); } protected function nonTypeHintedGetAndSet(): Attribute { return new Attribute( function () { return $this->name; }, function ($name) { $this->name = $name; } ); } protected function nonTypeHintedGet(): Attribute { return Attribute::get(function () { return $this->name; }); } protected function nonTypeHintedSet(): Attribute { return Attribute::set(function ($name) { $this->name = $name; }); } protected function parameterlessSet(): Attribute { return Attribute::set(function () { $this->name = null; }); } /** * ide-helper does not recognize this method being an Attribute * because the method has no actual return type; * phpdoc is ignored here deliberately due to performance reasons and also * isn't supported by Laravel itself. * * @return Attribute */ protected function notAnAttribute() { return new Attribute( function (?string $value): ?string { return $value; }, function (?string $value): ?string { return $value; } ); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false
barryvdh/laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper/blob/2ac73f2953f59e43b798e959a352e09305cb5320/tests/Console/ModelsCommand/Attributes/Models/BackedAttribute.php
tests/Console/ModelsCommand/Attributes/Models/BackedAttribute.php
<?php declare(strict_types=1); namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Attributes\Models; use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Model; class BackedAttribute extends Model { protected function name(): Attribute { return new Attribute( function (?string $name): ?string { return $name; }, function (?string $name): ?string { return $name; } ); } protected function nameRead(): Attribute { return new Attribute( function (?string $name): ?string { return $name; }, ); } protected function nameWrite(): Attribute { return new Attribute( set: function (?string $name): ?string { return $name; }, ); } protected function nonBackedSet(): Attribute { return new Attribute( set: function (?string $name): ?string { return $name; }, ); } protected function nonBackedGet(): Attribute { return new Attribute( get: function (): ?string { return 'test'; }, ); } }
php
MIT
2ac73f2953f59e43b798e959a352e09305cb5320
2026-01-04T15:02:42.026190Z
false