diff --git a/app/Concerns/SortsTodos.php b/app/Concerns/SortsTodos.php new file mode 100644 index 0000000..c1bd0f4 --- /dev/null +++ b/app/Concerns/SortsTodos.php @@ -0,0 +1,110 @@ +sortableTodoColumns(), true)) { + return; + } + + if ($this->sortBy !== $column) { + $this->sortBy = $column; + $this->sortDirection = 'asc'; + } elseif ($this->sortDirection === 'asc') { + $this->sortDirection = 'desc'; + } else { + $this->sortBy = null; + $this->sortDirection = 'asc'; + } + + $this->sortChanged(); + } + + /** + * Determine whether a column sort is currently applied. + */ + protected function hasActiveSort(): bool + { + return $this->sortBy !== null; + } + + /** + * @return list + */ + protected function sortableTodoColumns(): array + { + return ['description', 'status', 'folder', 'due_date', 'created_at', 'completed_at']; + } + + /** + * @param Builder $query + * @return Builder + */ + protected function applyTodoSort(Builder $query): Builder + { + if ($this->sortBy === null) { + return $query->priority(); + } + + $direction = $this->sortDirection === 'desc' ? 'desc' : 'asc'; + + return (match ($this->sortBy) { + 'description' => $query->orderBy('description', $direction), + 'status' => $this->orderByStatus($query, $direction), + 'folder' => $query->orderBy( + Folder::query()->select('name')->whereColumn('folders.id', 'todos.folder_id'), + $direction + ), + 'due_date' => $query + ->orderByRaw('due_date IS NULL') + ->orderBy('due_date', $direction), + 'created_at' => $query->orderBy('created_at', $direction), + 'completed_at' => $query + ->orderByRaw('completed_at IS NULL') + ->orderBy('completed_at', $direction), + default => $query->priority(), + })->orderBy('id'); + } + + /** + * @param Builder $query + * @return Builder + */ + private function orderByStatus(Builder $query, string $direction): Builder + { + $statuses = TodoStatus::cases(); + + $cases = collect($statuses) + ->map(fn (TodoStatus $status, int $index) => 'WHEN ? THEN '.$index) + ->implode(' '); + + return $query->orderByRaw( + "CASE todos.status {$cases} ELSE 999 END {$direction}", + collect($statuses)->map(fn (TodoStatus $status) => $status->value)->all() + ); + } + + /** + * Hook for components to reset their pagination when the sort changes. + */ + protected function sortChanged(): void {} +} diff --git a/app/Models/Organization.php b/app/Models/Organization.php index f14f050..426289f 100644 --- a/app/Models/Organization.php +++ b/app/Models/Organization.php @@ -9,6 +9,7 @@ use Illuminate\Database\Eloquent\Attributes\Fillable; use Illuminate\Database\Eloquent\Attributes\Hidden; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\MorphMany; @@ -30,6 +31,7 @@ use Symfony\Component\HttpKernel\Exception\HttpException; * @property WorkspaceType $type * @property bool $personal_workspace * @property bool $lifetime_access + * @property int|null $plan_id * @property string|null $stripe_id * @property string|null $pm_type * @property string|null $pm_last_four @@ -37,7 +39,7 @@ use Symfony\Component\HttpKernel\Exception\HttpException; * @property Carbon|null $created_at * @property Carbon|null $updated_at */ -#[Fillable(['name', 'type', 'personal_workspace', 'lifetime_access'])] +#[Fillable(['name', 'type', 'personal_workspace', 'lifetime_access', 'plan_id'])] #[Hidden(['stripe_id'])] class Organization extends Model { @@ -69,6 +71,14 @@ class Organization extends Model ->withTimestamps(); } + /** + * @return BelongsTo + */ + public function plan(): BelongsTo + { + return $this->belongsTo(Plan::class); + } + /** * @return HasMany */ diff --git a/app/Models/Plan.php b/app/Models/Plan.php new file mode 100644 index 0000000..d11c392 --- /dev/null +++ b/app/Models/Plan.php @@ -0,0 +1,91 @@ + */ + use HasFactory; + + /** + * Get the attributes that should be cast. + * + * @return array + */ + protected function casts(): array + { + return [ + 'workspace_type' => WorkspaceType::class, + 'amount' => 'integer', + 'seat_limit' => 'integer', + 'max_folders' => 'integer', + 'max_folder_depth' => 'integer', + 'max_notes_per_folder' => 'integer', + 'note_chars' => 'integer', + 'sort_order' => 'integer', + 'is_active' => 'boolean', + ]; + } + + /** + * @return HasMany + */ + public function organizations(): HasMany + { + return $this->hasMany(Organization::class); + } + + /** + * Determine whether the plan can be sold, that is, it has a Stripe price. + */ + public function isPurchasable(): bool + { + return is_string($this->stripe_price) && $this->stripe_price !== ''; + } +} diff --git a/app/Models/User.php b/app/Models/User.php index 106eb25..c0d5b76 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -31,7 +31,7 @@ use Laravel\Fortify\TwoFactorAuthenticatable; * @property Carbon|null $two_factor_confirmed_at * @property string|null $remember_token * @property bool $is_admin - * @property int $notes_limit + * @property int|null $notes_limit * @property Carbon|null $created_at * @property Carbon|null $updated_at */ diff --git a/composer.lock b/composer.lock index ed8e46d..767bf73 100644 --- a/composer.lock +++ b/composer.lock @@ -63,23 +63,24 @@ }, { "name": "brick/math", - "version": "0.19.1", + "version": "1.0.0", "source": { "type": "git", "url": "https://github.com/brick/math.git", - "reference": "a89bc96a7cf3d7b59e725afe57ccb95eb03cf6ce" + "reference": "2effe05d2177c451b86c6a073196a4034c02f211" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/math/zipball/a89bc96a7cf3d7b59e725afe57ccb95eb03cf6ce", - "reference": "a89bc96a7cf3d7b59e725afe57ccb95eb03cf6ce", + "url": "https://api.github.com/repos/brick/math/zipball/2effe05d2177c451b86c6a073196a4034c02f211", + "reference": "2effe05d2177c451b86c6a073196a4034c02f211", "shasum": "" }, "require": { "php": "^8.2" }, "require-dev": { - "phpstan/phpstan": "2.1.22", + "phpstan/phpstan": "2.2.13", + "phpstan/phpstan-phpunit": "2.0.18", "phpunit/phpunit": "^11.5" }, "type": "library", @@ -110,7 +111,7 @@ ], "support": { "issues": "https://github.com/brick/math/issues", - "source": "https://github.com/brick/math/tree/0.19.1" + "source": "https://github.com/brick/math/tree/1.0.0" }, "funding": [ { @@ -118,7 +119,7 @@ "type": "github" } ], - "time": "2026-08-08T23:03:16+00:00" + "time": "2026-09-12T10:28:18+00:00" }, { "name": "carbonphp/carbon-doctrine-types", @@ -369,23 +370,23 @@ }, { "name": "doctrine/inflector", - "version": "2.1.0", + "version": "2.1.1", "source": { "type": "git", "url": "https://github.com/doctrine/inflector.git", - "reference": "6d6c96277ea252fc1304627204c3d5e6e15faa3b" + "reference": "46351b6812b7b6d52b82c3efa5dfb786a198ec88" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/6d6c96277ea252fc1304627204c3d5e6e15faa3b", - "reference": "6d6c96277ea252fc1304627204c3d5e6e15faa3b", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/46351b6812b7b6d52b82c3efa5dfb786a198ec88", + "reference": "46351b6812b7b6d52b82c3efa5dfb786a198ec88", "shasum": "" }, "require": { "php": "^7.2 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^12.0 || ^13.0", + "doctrine/coding-standard": "^12.0 || ^14.0", "phpstan/phpstan": "^1.12 || ^2.0", "phpstan/phpstan-phpunit": "^1.4 || ^2.0", "phpstan/phpstan-strict-rules": "^1.6 || ^2.0", @@ -439,7 +440,7 @@ ], "support": { "issues": "https://github.com/doctrine/inflector/issues", - "source": "https://github.com/doctrine/inflector/tree/2.1.0" + "source": "https://github.com/doctrine/inflector/tree/2.1.1" }, "funding": [ { @@ -455,31 +456,29 @@ "type": "tidelift" } ], - "time": "2025-08-10T19:31:58+00:00" + "time": "2026-10-26T08:14:14+00:00" }, { "name": "doctrine/lexer", - "version": "3.0.1", + "version": "3.0.3", "source": { "type": "git", "url": "https://github.com/doctrine/lexer.git", - "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd" + "reference": "71d305eaa6480d3d3460c7d053d1da7749fa9cca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", - "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/71d305eaa6480d3d3460c7d053d1da7749fa9cca", + "reference": "71d305eaa6480d3d3460c7d053d1da7749fa9cca", "shasum": "" }, "require": { "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^12", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^10.5", - "psalm/plugin-phpunit": "^0.18.3", - "vimeo/psalm": "^5.21" + "doctrine/coding-standard": "^14", + "phpstan/phpstan": "^2", + "phpunit/phpunit": "^10.5.58 || ^12.5.4" }, "type": "library", "autoload": { @@ -516,7 +515,7 @@ ], "support": { "issues": "https://github.com/doctrine/lexer/issues", - "source": "https://github.com/doctrine/lexer/tree/3.0.1" + "source": "https://github.com/doctrine/lexer/tree/3.0.3" }, "funding": [ { @@ -532,20 +531,20 @@ "type": "tidelift" } ], - "time": "2024-02-05T11:56:58+00:00" + "time": "2026-10-01T06:59:29+00:00" }, { "name": "dragonmantank/cron-expression", - "version": "v3.6.0", + "version": "v3.6.1", "source": { "type": "git", "url": "https://github.com/dragonmantank/cron-expression.git", - "reference": "d61a8a9604ec1f8c3d150d09db6ce98b32675013" + "reference": "4189372ffeff09bf14f731f67a9de90c7b413ebe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/d61a8a9604ec1f8c3d150d09db6ce98b32675013", - "reference": "d61a8a9604ec1f8c3d150d09db6ce98b32675013", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/4189372ffeff09bf14f731f67a9de90c7b413ebe", + "reference": "4189372ffeff09bf14f731f67a9de90c7b413ebe", "shasum": "" }, "require": { @@ -556,8 +555,8 @@ }, "require-dev": { "phpstan/extension-installer": "^1.4.3", - "phpstan/phpstan": "^1.12.32|^2.1.31", - "phpunit/phpunit": "^8.5.48|^9.0" + "phpstan/phpstan": "^2.1.31", + "phpunit/phpunit": "^11.5.43 || ^12.4" }, "type": "library", "extra": { @@ -588,7 +587,7 @@ ], "support": { "issues": "https://github.com/dragonmantank/cron-expression/issues", - "source": "https://github.com/dragonmantank/cron-expression/tree/v3.6.0" + "source": "https://github.com/dragonmantank/cron-expression/tree/v3.6.1" }, "funding": [ { @@ -596,7 +595,7 @@ "type": "github" } ], - "time": "2025-10-31T18:51:33+00:00" + "time": "2026-10-19T17:53:57+00:00" }, { "name": "egulias/email-validator", @@ -800,22 +799,22 @@ }, { "name": "guzzlehttp/guzzle", - "version": "8.2.0", + "version": "8.3.1", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "93939470950a9b11e2e84204166ef5e048c55fe4" + "reference": "7d9b1f430bb65ac664e120af227bf9a795ad6333" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/93939470950a9b11e2e84204166ef5e048c55fe4", - "reference": "93939470950a9b11e2e84204166ef5e048c55fe4", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/7d9b1f430bb65ac664e120af227bf9a795ad6333", + "reference": "7d9b1f430bb65ac664e120af227bf9a795ad6333", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^3.0.2", - "guzzlehttp/psr7": "^3.1", + "guzzlehttp/promises": "^3.1", + "guzzlehttp/psr7": "^3.2", "php": "^7.4 || ^8.0", "psr/http-client": "^1.0", "psr/http-factory": "^1.0", @@ -829,7 +828,7 @@ "bamarni/composer-bin-plugin": "^1.8.2", "ext-curl": "*", "guzzle/client-integration-tests": "4.0.1", - "guzzlehttp/test-server": "^1.0.1", + "guzzlehttp/test-server": "^1.1", "php-http/message-factory": "^1.1", "phpunit/phpunit": "^9.6.34", "psr/log": "^1.1 || ^2.0 || ^3.0" @@ -906,7 +905,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/8.2.0" + "source": "https://github.com/guzzle/guzzle/tree/8.3.1" }, "funding": [ { @@ -922,24 +921,25 @@ "type": "tidelift" } ], - "time": "2026-09-06T13:55:09+00:00" + "time": "2026-10-25T21:35:34+00:00" }, { "name": "guzzlehttp/promises", - "version": "3.0.2", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "42118e66a53c492effaf92bc357e931985d5c6f9" + "reference": "094d0ec418eb3b1411ea271a180ec95cae6ae933" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/42118e66a53c492effaf92bc357e931985d5c6f9", - "reference": "42118e66a53c492effaf92bc357e931985d5c6f9", + "url": "https://api.github.com/repos/guzzle/promises/zipball/094d0ec418eb3b1411ea271a180ec95cae6ae933", + "reference": "094d0ec418eb3b1411ea271a180ec95cae6ae933", "shasum": "" }, "require": { - "php": "^7.4 || ^8.0" + "php": "^7.4 || ^8.0", + "symfony/deprecation-contracts": "^2.5 || ^3.0" }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", @@ -989,7 +989,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/3.0.2" + "source": "https://github.com/guzzle/promises/tree/3.1.0" }, "funding": [ { @@ -1005,20 +1005,20 @@ "type": "tidelift" } ], - "time": "2026-08-24T10:00:26+00:00" + "time": "2026-10-18T12:48:16+00:00" }, { "name": "guzzlehttp/psr7", - "version": "3.1.0", + "version": "3.2.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "a3059ba1a84c9139c4ae03cf0f45bea276c97c74" + "reference": "cdc139396207a5eba10c242d241fb014cb098390" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/a3059ba1a84c9139c4ae03cf0f45bea276c97c74", - "reference": "a3059ba1a84c9139c4ae03cf0f45bea276c97c74", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/cdc139396207a5eba10c242d241fb014cb098390", + "reference": "cdc139396207a5eba10c242d241fb014cb098390", "shasum": "" }, "require": { @@ -1108,7 +1108,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/3.1.0" + "source": "https://github.com/guzzle/psr7/tree/3.2.0" }, "funding": [ { @@ -1124,7 +1124,7 @@ "type": "tidelift" } ], - "time": "2026-08-24T11:02:13+00:00" + "time": "2026-10-17T23:57:19+00:00" }, { "name": "guzzlehttp/uri-template", @@ -1214,16 +1214,16 @@ }, { "name": "laravel/cashier", - "version": "v16.8.0", + "version": "v16.9.0", "source": { "type": "git", "url": "https://github.com/laravel/cashier-stripe.git", - "reference": "3741d81d0e2b7ca8de52c2f9a272d30edfa741b9" + "reference": "40fdf5d0461b2f788615dc98931bedd784bceea0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/cashier-stripe/zipball/3741d81d0e2b7ca8de52c2f9a272d30edfa741b9", - "reference": "3741d81d0e2b7ca8de52c2f9a272d30edfa741b9", + "url": "https://api.github.com/repos/laravel/cashier-stripe/zipball/40fdf5d0461b2f788615dc98931bedd784bceea0", + "reference": "40fdf5d0461b2f788615dc98931bedd784bceea0", "shasum": "" }, "require": { @@ -1299,7 +1299,7 @@ "issues": "https://github.com/laravel/cashier/issues", "source": "https://github.com/laravel/cashier" }, - "time": "2026-09-01T13:29:00+00:00" + "time": "2026-10-13T15:12:56+00:00" }, { "name": "laravel/chisel", @@ -1355,16 +1355,16 @@ }, { "name": "laravel/fortify", - "version": "v1.39.0", + "version": "v1.41.0", "source": { "type": "git", "url": "https://github.com/laravel/fortify.git", - "reference": "b1fc50707bbe007fd92165d8b7d460ab549b355a" + "reference": "c456642584c102f6a6aafee9932299542da637b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/fortify/zipball/b1fc50707bbe007fd92165d8b7d460ab549b355a", - "reference": "b1fc50707bbe007fd92165d8b7d460ab549b355a", + "url": "https://api.github.com/repos/laravel/fortify/zipball/c456642584c102f6a6aafee9932299542da637b5", + "reference": "c456642584c102f6a6aafee9932299542da637b5", "shasum": "" }, "require": { @@ -1377,6 +1377,7 @@ "pragmarx/google2fa": "^9.0" }, "require-dev": { + "jasonmccreary/double": "^1.0", "orchestra/testbench": "^9.15|^10.8|^11.0", "phpstan/phpstan": "^2.2.6" }, @@ -1415,24 +1416,24 @@ "issues": "https://github.com/laravel/fortify/issues", "source": "https://github.com/laravel/fortify" }, - "time": "2026-08-23T07:46:41+00:00" + "time": "2026-09-28T14:56:25+00:00" }, { "name": "laravel/framework", - "version": "v13.32.0", + "version": "v13.39.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "cdd8b33c246719acdd118c705ce8c7ab5ef48a96" + "reference": "d52c3b3129e4c8e213c97cdc68f94b0b7d27f181" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/cdd8b33c246719acdd118c705ce8c7ab5ef48a96", - "reference": "cdd8b33c246719acdd118c705ce8c7ab5ef48a96", + "url": "https://api.github.com/repos/laravel/framework/zipball/d52c3b3129e4c8e213c97cdc68f94b0b7d27f181", + "reference": "d52c3b3129e4c8e213c97cdc68f94b0b7d27f181", "shasum": "" }, "require": { - "brick/math": "^0.14.2 || ^0.15 || ^0.16 || ^0.17 || ^0.18 || ^0.19", + "brick/math": "^0.14.2 || ^0.15 || ^0.16 || ^0.17 || ^0.18 || ^0.19 || ^0.20 || ^1.0", "composer-runtime-api": "^2.2", "doctrine/inflector": "^2.0.5", "dragonmantank/cron-expression": "^3.4", @@ -1449,7 +1450,7 @@ "guzzlehttp/promises": "^2.0.3 || ^3.0", "guzzlehttp/psr7": "^2.9 || ^3.0", "guzzlehttp/uri-template": "^1.0 || ^2.0", - "laravel/prompts": "^0.3.11", + "laravel/prompts": "^0.3.25", "laravel/serializable-closure": "^2.0.10", "league/commonmark": "^2.8.1", "league/flysystem": "^3.25.1", @@ -1535,7 +1536,7 @@ "aws/aws-sdk-php": "^3.322.9", "ext-gmp": "*", "fakerphp/faker": "^1.24", - "intervention/image": "^4.0", + "intervention/image": "^4.2", "laravel/pint": "^1.18", "league/flysystem-aws-s3-v3": "^3.25.1", "league/flysystem-ftp": "^3.25.1", @@ -1544,10 +1545,10 @@ "league/flysystem-sftp-v3": "^3.25.1", "mockery/mockery": "^1.6.10", "opis/json-schema": "^2.4.1", - "orchestra/testbench-core": "^11.0.0", + "orchestra/testbench-core": "^11.6.0", "pda/pheanstalk": "^7.0.0 || ^8.0.0", "php-http/discovery": "^1.15", - "phpstan/phpstan": "^2.2.14", + "phpstan/phpstan": "2.3.1", "phpunit/phpunit": "^11.5.50 || ^12.5.8 || ^13.0.3", "predis/predis": "^2.3 || ^3.0", "rector/rector": "2.6.3", @@ -1574,7 +1575,7 @@ "ext-redis": "Required to use the Redis cache and queue drivers (^4.0 || ^5.0 || ^6.0).", "fakerphp/faker": "Required to generate fake data using the fake() helper (^1.23).", "filp/whoops": "Required for friendly error pages in development (^2.14.3).", - "intervention/image": "Required to use the image processing features (^4.0).", + "intervention/image": "Required to use the image processing features (^4.2).", "laravel/tinker": "Required to use the tinker console command (^2.0).", "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^3.25.1).", "league/flysystem-ftp": "Required to use the Flysystem FTP driver (^3.25.1).", @@ -1646,7 +1647,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2026-09-15T14:55:30+00:00" + "time": "2026-10-27T14:04:39+00:00" }, { "name": "laravel/passkeys", @@ -1718,16 +1719,16 @@ }, { "name": "laravel/prompts", - "version": "v0.3.24", + "version": "v0.3.26", "source": { "type": "git", "url": "https://github.com/laravel/prompts.git", - "reference": "5d3cdef29e93ca3b62b1871359db3078cd99908b" + "reference": "2d1e9bf6bab8d3f383c254db7f2b4ea8816d55e0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/prompts/zipball/5d3cdef29e93ca3b62b1871359db3078cd99908b", - "reference": "5d3cdef29e93ca3b62b1871359db3078cd99908b", + "url": "https://api.github.com/repos/laravel/prompts/zipball/2d1e9bf6bab8d3f383c254db7f2b4ea8816d55e0", + "reference": "2d1e9bf6bab8d3f383c254db7f2b4ea8816d55e0", "shasum": "" }, "require": { @@ -1770,23 +1771,22 @@ ], "description": "Add beautiful and user-friendly forms to your command-line applications.", "support": { - "issues": "https://github.com/laravel/prompts/issues", - "source": "https://github.com/laravel/prompts/tree/v0.3.24" + "source": "https://github.com/laravel/prompts/tree/v0.3.26" }, - "time": "2026-08-20T12:55:36+00:00" + "time": "2026-10-09T14:45:13+00:00" }, { "name": "laravel/serializable-closure", - "version": "v2.0.16", + "version": "v2.1.0", "source": { "type": "git", "url": "https://github.com/laravel/serializable-closure.git", - "reference": "7cfc24e4fa2cca045fb8dd2a797a2b2b13b655ed" + "reference": "2d5869a838bbcf37e0d8b0568fc41914e81374b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/7cfc24e4fa2cca045fb8dd2a797a2b2b13b655ed", - "reference": "7cfc24e4fa2cca045fb8dd2a797a2b2b13b655ed", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/2d5869a838bbcf37e0d8b0568fc41914e81374b5", + "reference": "2d5869a838bbcf37e0d8b0568fc41914e81374b5", "shasum": "" }, "require": { @@ -1834,7 +1834,7 @@ "issues": "https://github.com/laravel/serializable-closure/issues", "source": "https://github.com/laravel/serializable-closure" }, - "time": "2026-08-18T20:28:54+00:00" + "time": "2026-09-22T14:32:34+00:00" }, { "name": "laravel/tinker", @@ -1907,16 +1907,16 @@ }, { "name": "league/commonmark", - "version": "2.10.1", + "version": "2.10.6", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "9d489ab67a02960fd8ffe624d93f751daf95439e" + "reference": "cb3d6a523587751db4b8e1d0c3945d2d68535bd3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/9d489ab67a02960fd8ffe624d93f751daf95439e", - "reference": "9d489ab67a02960fd8ffe624d93f751daf95439e", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/cb3d6a523587751db4b8e1d0c3945d2d68535bd3", + "reference": "cb3d6a523587751db4b8e1d0c3945d2d68535bd3", "shasum": "" }, "require": { @@ -2010,7 +2010,7 @@ "type": "tidelift" } ], - "time": "2026-09-07T13:44:26+00:00" + "time": "2026-10-30T12:21:38+00:00" }, { "name": "league/config", @@ -2284,20 +2284,21 @@ }, { "name": "league/uri", - "version": "7.8.1", + "version": "7.9.1", "source": { "type": "git", "url": "https://github.com/thephpleague/uri.git", - "reference": "08cf38e3924d4f56238125547b5720496fac8fd4" + "reference": "40403f5c3141457a61f7f1aba6706e8fa4a0ece5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/uri/zipball/08cf38e3924d4f56238125547b5720496fac8fd4", - "reference": "08cf38e3924d4f56238125547b5720496fac8fd4", + "url": "https://api.github.com/repos/thephpleague/uri/zipball/40403f5c3141457a61f7f1aba6706e8fa4a0ece5", + "reference": "40403f5c3141457a61f7f1aba6706e8fa4a0ece5", "shasum": "" }, "require": { - "league/uri-interfaces": "^7.8.1", + "ext-mbstring": "*", + "league/uri-interfaces": "^7.9.1", "php": "^8.1", "psr/http-factory": "^1" }, @@ -2370,7 +2371,7 @@ "docs": "https://uri.thephpleague.com", "forum": "https://thephpleague.slack.com", "issues": "https://github.com/thephpleague/uri-src/issues", - "source": "https://github.com/thephpleague/uri/tree/7.8.1" + "source": "https://github.com/thephpleague/uri/tree/7.9.1" }, "funding": [ { @@ -2378,20 +2379,20 @@ "type": "github" } ], - "time": "2026-03-15T20:22:25+00:00" + "time": "2026-10-27T07:14:23+00:00" }, { "name": "league/uri-interfaces", - "version": "7.8.1", + "version": "7.9.1", "source": { "type": "git", "url": "https://github.com/thephpleague/uri-interfaces.git", - "reference": "85d5c77c5d6d3af6c54db4a78246364908f3c928" + "reference": "994300a79e17f179112dc259f8df0c4de982f736" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/85d5c77c5d6d3af6c54db4a78246364908f3c928", - "reference": "85d5c77c5d6d3af6c54db4a78246364908f3c928", + "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/994300a79e17f179112dc259f8df0c4de982f736", + "reference": "994300a79e17f179112dc259f8df0c4de982f736", "shasum": "" }, "require": { @@ -2454,7 +2455,7 @@ "docs": "https://uri.thephpleague.com", "forum": "https://thephpleague.slack.com", "issues": "https://github.com/thephpleague/uri-src/issues", - "source": "https://github.com/thephpleague/uri-interfaces/tree/7.8.1" + "source": "https://github.com/thephpleague/uri-interfaces/tree/7.9.1" }, "funding": [ { @@ -2462,20 +2463,20 @@ "type": "github" } ], - "time": "2026-03-08T20:05:35+00:00" + "time": "2026-10-27T07:14:23+00:00" }, { "name": "livewire/blaze", - "version": "v1.0.19", + "version": "v1.0.20", "source": { "type": "git", "url": "https://github.com/livewire/blaze.git", - "reference": "fceb689d9cda6115e30b30819035cca46ac406dc" + "reference": "518679566eb57ea1f5f63cba551239c13d9b3e9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/livewire/blaze/zipball/fceb689d9cda6115e30b30819035cca46ac406dc", - "reference": "fceb689d9cda6115e30b30819035cca46ac406dc", + "url": "https://api.github.com/repos/livewire/blaze/zipball/518679566eb57ea1f5f63cba551239c13d9b3e9c", + "reference": "518679566eb57ea1f5f63cba551239c13d9b3e9c", "shasum": "" }, "require": { @@ -2518,22 +2519,22 @@ "description": "A tool for optimizing Blade component performance by folding them into parent templates", "support": { "issues": "https://github.com/livewire/blaze/issues", - "source": "https://github.com/livewire/blaze/tree/v1.0.19" + "source": "https://github.com/livewire/blaze/tree/v1.0.20" }, - "time": "2026-09-15T09:45:15+00:00" + "time": "2026-10-25T20:07:27+00:00" }, { "name": "livewire/flux", - "version": "v2.20.0", + "version": "v2.21.0", "source": { "type": "git", "url": "https://github.com/livewire/flux.git", - "reference": "9c3645ce3eb11ddf42ec956dcea322447469826a" + "reference": "7ab277f7da3be4ffd26111b01e3b0766052f4472" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/livewire/flux/zipball/9c3645ce3eb11ddf42ec956dcea322447469826a", - "reference": "9c3645ce3eb11ddf42ec956dcea322447469826a", + "url": "https://api.github.com/repos/livewire/flux/zipball/7ab277f7da3be4ffd26111b01e3b0766052f4472", + "reference": "7ab277f7da3be4ffd26111b01e3b0766052f4472", "shasum": "" }, "require": { @@ -2584,22 +2585,22 @@ ], "support": { "issues": "https://github.com/livewire/flux/issues", - "source": "https://github.com/livewire/flux/tree/v2.20.0" + "source": "https://github.com/livewire/flux/tree/v2.21.0" }, - "time": "2026-09-15T13:15:09+00:00" + "time": "2026-10-21T14:45:58+00:00" }, { "name": "livewire/livewire", - "version": "v4.4.5", + "version": "v4.4.8", "source": { "type": "git", "url": "https://github.com/livewire/livewire.git", - "reference": "10aa0b5ee44c99b5bce0f78ad265bbcf0e74abdc" + "reference": "8d7f8fc6138274a2f3384c9db354ca012215a259" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/livewire/livewire/zipball/10aa0b5ee44c99b5bce0f78ad265bbcf0e74abdc", - "reference": "10aa0b5ee44c99b5bce0f78ad265bbcf0e74abdc", + "url": "https://api.github.com/repos/livewire/livewire/zipball/8d7f8fc6138274a2f3384c9db354ca012215a259", + "reference": "8d7f8fc6138274a2f3384c9db354ca012215a259", "shasum": "" }, "require": { @@ -2654,7 +2655,7 @@ "description": "A front-end framework for Laravel.", "support": { "issues": "https://github.com/livewire/livewire/issues", - "source": "https://github.com/livewire/livewire/tree/v4.4.5" + "source": "https://github.com/livewire/livewire/tree/v4.4.8" }, "funding": [ { @@ -2662,7 +2663,7 @@ "type": "github" } ], - "time": "2026-09-14T19:27:16+00:00" + "time": "2026-10-21T12:53:46+00:00" }, { "name": "moneyphp/money", @@ -2756,16 +2757,16 @@ }, { "name": "monolog/monolog", - "version": "3.12.0", + "version": "3.12.1", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "72c534fc0ab181ef52d92a68382318631e301608" + "reference": "d7059e4c691d05ea1222b5124bed0f961be46e15" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/72c534fc0ab181ef52d92a68382318631e301608", - "reference": "72c534fc0ab181ef52d92a68382318631e301608", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/d7059e4c691d05ea1222b5124bed0f961be46e15", + "reference": "d7059e4c691d05ea1222b5124bed0f961be46e15", "shasum": "" }, "require": { @@ -2845,7 +2846,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/3.12.0" + "source": "https://github.com/Seldaek/monolog/tree/3.12.1" }, "funding": [ { @@ -2857,20 +2858,20 @@ "type": "tidelift" } ], - "time": "2026-09-09T08:34:20+00:00" + "time": "2026-09-29T19:21:12+00:00" }, { "name": "nesbot/carbon", - "version": "3.14.0", + "version": "3.15.1", "source": { "type": "git", "url": "https://github.com/CarbonPHP/carbon.git", - "reference": "0023eaa2c9110e47446dd512a263c69c40cd41f2" + "reference": "ce0e5636fae7d1e99856eb70cae4c719a284aa08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/0023eaa2c9110e47446dd512a263c69c40cd41f2", - "reference": "0023eaa2c9110e47446dd512a263c69c40cd41f2", + "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/ce0e5636fae7d1e99856eb70cae4c719a284aa08", + "reference": "ce0e5636fae7d1e99856eb70cae4c719a284aa08", "shasum": "" }, "require": { @@ -2880,6 +2881,7 @@ "psr/clock": "^1.0", "symfony/clock": "^6.3.12 || ^7.0 || ^8.0", "symfony/polyfill-mbstring": "^1.0", + "symfony/polyfill-time": "^1.0", "symfony/translation": "^4.4.18 || ^5.2.1 || ^6.0 || ^7.0 || ^8.0" }, "provide": { @@ -2890,7 +2892,7 @@ "doctrine/orm": "^2.15.2 || ^3.0", "friendsofphp/php-cs-fixer": "^v3.87.1", "kylekatarnls/multi-tester": "^2.5.3", - "phpmd/phpmd": "^2.15.0", + "phpmd/phpmd": "^3.0@dev", "phpstan/extension-installer": "^1.4.3", "phpstan/phpstan": "^2.1.22", "phpunit/phpunit": "^10.5.53", @@ -2962,37 +2964,37 @@ "type": "tidelift" } ], - "time": "2026-09-12T20:45:19+00:00" + "time": "2026-10-25T14:32:48+00:00" }, { "name": "nette/schema", - "version": "v1.3.6", + "version": "v1.4.0", "source": { "type": "git", "url": "https://github.com/nette/schema.git", - "reference": "c54350438cd6914616f790a49cb424605f421562" + "reference": "af9fa8a86bfca9b02b10346220db26e62ef942ec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nette/schema/zipball/c54350438cd6914616f790a49cb424605f421562", - "reference": "c54350438cd6914616f790a49cb424605f421562", + "url": "https://api.github.com/repos/nette/schema/zipball/af9fa8a86bfca9b02b10346220db26e62ef942ec", + "reference": "af9fa8a86bfca9b02b10346220db26e62ef942ec", "shasum": "" }, "require": { "nette/utils": "^4.0", - "php": "8.1 - 8.5" + "php": "8.1 - 8.6" }, "require-dev": { - "nette/phpstan-rules": "^1.0", + "nette/phpstan-rules": "^1.0.7", "nette/tester": "^2.6", "phpstan/extension-installer": "^1.4@stable", - "phpstan/phpstan": "^2.1.39@stable", + "phpstan/phpstan": "^2.3@stable", "tracy/tracy": "^2.8" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "1.4-dev" } }, "autoload": { @@ -3013,40 +3015,40 @@ { "name": "David Grudl", "homepage": "https://davidgrudl.com" - }, - { - "name": "Nette Community", - "homepage": "https://nette.org/contributors" } ], - "description": "šŸ“ Nette Schema: validating data structures against a given Schema.", - "homepage": "https://nette.org", + "description": "šŸ“ Nette Schema: validates and normalizes data such as configuration or API input against a schema described in a few readable lines of PHP, with precise error messages.", + "homepage": "https://doc.nette.org/schema", "keywords": [ - "config", - "nette" + "configuration", + "data validation", + "nette", + "normalization", + "schema", + "validation" ], "support": { "issues": "https://github.com/nette/schema/issues", - "source": "https://github.com/nette/schema/tree/v1.3.6" + "source": "https://github.com/nette/schema/tree/v1.4.0" }, - "time": "2026-08-16T21:58:41+00:00" + "time": "2026-10-22T02:12:50+00:00" }, { "name": "nette/utils", - "version": "v4.1.5", + "version": "v4.1.6", "source": { "type": "git", "url": "https://github.com/nette/utils.git", - "reference": "b043439dbdf954e6c28b5ea7e34b0100f83165e0" + "reference": "6bf24518accf32cf845bca305e0b92078700fd01" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nette/utils/zipball/b043439dbdf954e6c28b5ea7e34b0100f83165e0", - "reference": "b043439dbdf954e6c28b5ea7e34b0100f83165e0", + "url": "https://api.github.com/repos/nette/utils/zipball/6bf24518accf32cf845bca305e0b92078700fd01", + "reference": "6bf24518accf32cf845bca305e0b92078700fd01", "shasum": "" }, "require": { - "php": "8.2 - 8.5" + "php": "8.2 - 8.6" }, "conflict": { "nette/finder": "<3", @@ -3118,9 +3120,9 @@ ], "support": { "issues": "https://github.com/nette/utils/issues", - "source": "https://github.com/nette/utils/tree/v4.1.5" + "source": "https://github.com/nette/utils/tree/v4.1.6" }, - "time": "2026-07-17T23:02:45+00:00" + "time": "2026-10-20T17:07:56+00:00" }, { "name": "nikic/php-parser", @@ -3337,20 +3339,25 @@ }, { "name": "phpdocumentor/reflection-common", - "version": "2.2.0", + "version": "2.2.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" + "reference": "ee15a5a2022c8383906b225055e9496a6a5e6e3b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/ee15a5a2022c8383906b225055e9496a6a5e6e3b", + "reference": "ee15a5a2022c8383906b225055e9496a6a5e6e3b", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0" + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.8", + "phpunit/phpunit": "^9.5", + "vimeo/psalm": "^4.25" }, "type": "library", "extra": { @@ -3374,7 +3381,7 @@ } ], "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "http://www.phpdoc.org", + "homepage": "https://www.phpdoc.org", "keywords": [ "FQSEN", "phpDocumentor", @@ -3384,9 +3391,9 @@ ], "support": { "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", - "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" + "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.2.1" }, - "time": "2020-06-27T09:03:43+00:00" + "time": "2025-11-10T21:21:55+00:00" }, { "name": "phpdocumentor/reflection-docblock", @@ -3455,16 +3462,16 @@ }, { "name": "phpdocumentor/type-resolver", - "version": "2.0.0", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "327a05bbee54120d4786a0dc67aad30226ad4cf9" + "reference": "dbe2133bb23e2e33a6834f4ed417f24a1b167769" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/327a05bbee54120d4786a0dc67aad30226ad4cf9", - "reference": "327a05bbee54120d4786a0dc67aad30226ad4cf9", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/dbe2133bb23e2e33a6834f4ed417f24a1b167769", + "reference": "dbe2133bb23e2e33a6834f4ed417f24a1b167769", "shasum": "" }, "require": { @@ -3507,9 +3514,9 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/2.0.0" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/2.1.0" }, - "time": "2026-01-06T21:53:42+00:00" + "time": "2026-09-27T19:32:54+00:00" }, { "name": "phpoption/phpoption", @@ -3588,16 +3595,16 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "2.3.5", + "version": "2.4.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "148cefffaf0233e4c08cc13db8a195a56dd6dfe9" + "reference": "e3647094ed8f0f1f67393d812b793a5143e25af3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/148cefffaf0233e4c08cc13db8a195a56dd6dfe9", - "reference": "148cefffaf0233e4c08cc13db8a195a56dd6dfe9", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/e3647094ed8f0f1f67393d812b793a5143e25af3", + "reference": "e3647094ed8f0f1f67393d812b793a5143e25af3", "shasum": "" }, "require": { @@ -3629,9 +3636,9 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/2.3.5" + "source": "https://github.com/phpstan/phpdoc-parser/tree/2.4.0" }, - "time": "2026-08-31T16:05:28+00:00" + "time": "2026-10-28T20:28:58+00:00" }, { "name": "pragmarx/google2fa", @@ -4526,16 +4533,16 @@ }, { "name": "stripe/stripe-php", - "version": "v21.3.2", + "version": "v21.3.3", "source": { "type": "git", "url": "https://github.com/stripe/stripe-php.git", - "reference": "0d8b075e1a97d15c5324353a5277d0ea686ea525" + "reference": "3d52008ffeab02763b02462802393f3d4da2aa51" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/stripe/stripe-php/zipball/0d8b075e1a97d15c5324353a5277d0ea686ea525", - "reference": "0d8b075e1a97d15c5324353a5277d0ea686ea525", + "url": "https://api.github.com/repos/stripe/stripe-php/zipball/3d52008ffeab02763b02462802393f3d4da2aa51", + "reference": "3d52008ffeab02763b02462802393f3d4da2aa51", "shasum": "" }, "require": { @@ -4582,22 +4589,22 @@ ], "support": { "issues": "https://github.com/stripe/stripe-php/issues", - "source": "https://github.com/stripe/stripe-php/tree/v21.3.2" + "source": "https://github.com/stripe/stripe-php/tree/v21.3.3" }, - "time": "2026-09-09T20:40:43+00:00" + "time": "2026-10-27T19:47:35+00:00" }, { "name": "symfony/clock", - "version": "v8.1.0", + "version": "v8.1.9", "source": { "type": "git", "url": "https://github.com/symfony/clock.git", - "reference": "701ef4de9705d6c32292ebee5e8044094a09fbf6" + "reference": "945ea3b64d6da9c1c2c354fe5c07b27455df6442" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/clock/zipball/701ef4de9705d6c32292ebee5e8044094a09fbf6", - "reference": "701ef4de9705d6c32292ebee5e8044094a09fbf6", + "url": "https://api.github.com/repos/symfony/clock/zipball/945ea3b64d6da9c1c2c354fe5c07b27455df6442", + "reference": "945ea3b64d6da9c1c2c354fe5c07b27455df6442", "shasum": "" }, "require": { @@ -4641,7 +4648,7 @@ "time" ], "support": { - "source": "https://github.com/symfony/clock/tree/v8.1.0" + "source": "https://github.com/symfony/clock/tree/v8.1.9" }, "funding": [ { @@ -4661,20 +4668,20 @@ "type": "tidelift" } ], - "time": "2026-05-29T05:06:50+00:00" + "time": "2026-10-12T14:32:04+00:00" }, { "name": "symfony/console", - "version": "v8.1.7", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "29afb89f4e941f68a6e90f28e3f52ff1f6793a7d" + "reference": "5b6d9b127ec27bc6db59bf65e2e37b6fe5b00083" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/29afb89f4e941f68a6e90f28e3f52ff1f6793a7d", - "reference": "29afb89f4e941f68a6e90f28e3f52ff1f6793a7d", + "url": "https://api.github.com/repos/symfony/console/zipball/5b6d9b127ec27bc6db59bf65e2e37b6fe5b00083", + "reference": "5b6d9b127ec27bc6db59bf65e2e37b6fe5b00083", "shasum": "" }, "require": { @@ -4741,7 +4748,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v8.1.7" + "source": "https://github.com/symfony/console/tree/v8.1.10" }, "funding": [ { @@ -4761,20 +4768,20 @@ "type": "tidelift" } ], - "time": "2026-09-13T10:55:57+00:00" + "time": "2026-10-28T11:16:19+00:00" }, { "name": "symfony/css-selector", - "version": "v8.1.6", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "08e2905152a39cf3fd1745d83f8c483e258887d9" + "reference": "9cfd588b8b07cf83e3426b030dbafd2291c132d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/08e2905152a39cf3fd1745d83f8c483e258887d9", - "reference": "08e2905152a39cf3fd1745d83f8c483e258887d9", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/9cfd588b8b07cf83e3426b030dbafd2291c132d9", + "reference": "9cfd588b8b07cf83e3426b030dbafd2291c132d9", "shasum": "" }, "require": { @@ -4810,7 +4817,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v8.1.6" + "source": "https://github.com/symfony/css-selector/tree/v8.1.10" }, "funding": [ { @@ -4830,7 +4837,7 @@ "type": "tidelift" } ], - "time": "2026-08-23T10:06:25+00:00" + "time": "2026-10-18T14:56:39+00:00" }, { "name": "symfony/deprecation-contracts", @@ -4905,16 +4912,16 @@ }, { "name": "symfony/error-handler", - "version": "v8.1.5", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "8b2a4289ffe5e2dc8fcf645b8e7870e1fa0325ce" + "reference": "84c6d73f990ae22dbd45625c056d7ff99ca6810d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/8b2a4289ffe5e2dc8fcf645b8e7870e1fa0325ce", - "reference": "8b2a4289ffe5e2dc8fcf645b8e7870e1fa0325ce", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/84c6d73f990ae22dbd45625c056d7ff99ca6810d", + "reference": "84c6d73f990ae22dbd45625c056d7ff99ca6810d", "shasum": "" }, "require": { @@ -4962,7 +4969,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v8.1.5" + "source": "https://github.com/symfony/error-handler/tree/v8.1.10" }, "funding": [ { @@ -4982,7 +4989,7 @@ "type": "tidelift" } ], - "time": "2026-08-21T17:47:34+00:00" + "time": "2026-10-25T14:40:25+00:00" }, { "name": "symfony/event-dispatcher", @@ -5152,16 +5159,16 @@ }, { "name": "symfony/finder", - "version": "v8.1.7", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "4fbe46a3eb64abf8a57f0364075b91f4a233e062" + "reference": "2f4c0f26106520d82e1b71759d2fb8d32d8b7a43" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/4fbe46a3eb64abf8a57f0364075b91f4a233e062", - "reference": "4fbe46a3eb64abf8a57f0364075b91f4a233e062", + "url": "https://api.github.com/repos/symfony/finder/zipball/2f4c0f26106520d82e1b71759d2fb8d32d8b7a43", + "reference": "2f4c0f26106520d82e1b71759d2fb8d32d8b7a43", "shasum": "" }, "require": { @@ -5196,7 +5203,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v8.1.7" + "source": "https://github.com/symfony/finder/tree/v8.1.10" }, "funding": [ { @@ -5216,20 +5223,20 @@ "type": "tidelift" } ], - "time": "2026-09-10T19:14:39+00:00" + "time": "2026-10-19T17:00:07+00:00" }, { "name": "symfony/http-foundation", - "version": "v8.1.7", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "d8fdc670ed510a69e3a9eb4f5eac89f5ed627e17" + "reference": "79325f87c3a2acc7564ddce9f457046e980e7255" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/d8fdc670ed510a69e3a9eb4f5eac89f5ed627e17", - "reference": "d8fdc670ed510a69e3a9eb4f5eac89f5ed627e17", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/79325f87c3a2acc7564ddce9f457046e980e7255", + "reference": "79325f87c3a2acc7564ddce9f457046e980e7255", "shasum": "" }, "require": { @@ -5277,7 +5284,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v8.1.7" + "source": "https://github.com/symfony/http-foundation/tree/v8.1.10" }, "funding": [ { @@ -5297,20 +5304,20 @@ "type": "tidelift" } ], - "time": "2026-09-14T17:47:24+00:00" + "time": "2026-10-27T12:24:10+00:00" }, { "name": "symfony/http-kernel", - "version": "v8.1.7", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "ec7a3a5832c22cf880cf27d2fdc7ad2e94838e85" + "reference": "924974dbdcdf4cc40d7bb2c65ae83bb6dc67cff1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/ec7a3a5832c22cf880cf27d2fdc7ad2e94838e85", - "reference": "ec7a3a5832c22cf880cf27d2fdc7ad2e94838e85", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/924974dbdcdf4cc40d7bb2c65ae83bb6dc67cff1", + "reference": "924974dbdcdf4cc40d7bb2c65ae83bb6dc67cff1", "shasum": "" }, "require": { @@ -5387,7 +5394,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v8.1.7" + "source": "https://github.com/symfony/http-kernel/tree/v8.1.10" }, "funding": [ { @@ -5407,20 +5414,20 @@ "type": "tidelift" } ], - "time": "2026-09-15T07:12:52+00:00" + "time": "2026-10-28T18:22:19+00:00" }, { "name": "symfony/mailer", - "version": "v8.1.7", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/mailer.git", - "reference": "8783380ecdafa23d36fc90c5873fd44b635c6e10" + "reference": "4ba81a8f04fbf0bb1691f7bff760b301f1956fd7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/8783380ecdafa23d36fc90c5873fd44b635c6e10", - "reference": "8783380ecdafa23d36fc90c5873fd44b635c6e10", + "url": "https://api.github.com/repos/symfony/mailer/zipball/4ba81a8f04fbf0bb1691f7bff760b301f1956fd7", + "reference": "4ba81a8f04fbf0bb1691f7bff760b301f1956fd7", "shasum": "" }, "require": { @@ -5467,7 +5474,7 @@ "description": "Helps sending emails", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailer/tree/v8.1.7" + "source": "https://github.com/symfony/mailer/tree/v8.1.10" }, "funding": [ { @@ -5487,20 +5494,20 @@ "type": "tidelift" } ], - "time": "2026-09-15T06:01:24+00:00" + "time": "2026-10-23T17:06:53+00:00" }, { "name": "symfony/mime", - "version": "v8.1.7", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "773ac57f20e2795bdadb65b5b1b5f4850d498283" + "reference": "8d1232052c9cdef170ed9608b3147bca4f61ff69" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/773ac57f20e2795bdadb65b5b1b5f4850d498283", - "reference": "773ac57f20e2795bdadb65b5b1b5f4850d498283", + "url": "https://api.github.com/repos/symfony/mime/zipball/8d1232052c9cdef170ed9608b3147bca4f61ff69", + "reference": "8d1232052c9cdef170ed9608b3147bca4f61ff69", "shasum": "" }, "require": { @@ -5553,7 +5560,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v8.1.7" + "source": "https://github.com/symfony/mime/tree/v8.1.10" }, "funding": [ { @@ -5573,7 +5580,7 @@ "type": "tidelift" } ], - "time": "2026-09-04T11:02:17+00:00" + "time": "2026-10-28T17:58:38+00:00" }, { "name": "symfony/polyfill-ctype", @@ -5660,16 +5667,16 @@ }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.41.0", + "version": "v1.43.3", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "bb899c1db0aa8127dc3afe8cda4a67eb24915f8d" + "reference": "5a8f33c87aeecffce24e721b5064fab05f4becf8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/bb899c1db0aa8127dc3afe8cda4a67eb24915f8d", - "reference": "bb899c1db0aa8127dc3afe8cda4a67eb24915f8d", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/5a8f33c87aeecffce24e721b5064fab05f4becf8", + "reference": "5a8f33c87aeecffce24e721b5064fab05f4becf8", "shasum": "" }, "require": { @@ -5718,7 +5725,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.41.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.43.3" }, "funding": [ { @@ -5738,20 +5745,20 @@ "type": "tidelift" } ], - "time": "2026-07-28T08:25:59+00:00" + "time": "2026-10-15T09:18:53+00:00" }, { "name": "symfony/polyfill-intl-icu", - "version": "v1.38.0", + "version": "v1.43.3", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-icu.git", - "reference": "445c90e341fccda10311019cf82ff73bb7343945" + "reference": "aad9cd259a9a4d2810e7ba778ed093bbd76a5ab9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/445c90e341fccda10311019cf82ff73bb7343945", - "reference": "445c90e341fccda10311019cf82ff73bb7343945", + "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/aad9cd259a9a4d2810e7ba778ed093bbd76a5ab9", + "reference": "aad9cd259a9a4d2810e7ba778ed093bbd76a5ab9", "shasum": "" }, "require": { @@ -5806,7 +5813,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-icu/tree/v1.38.0" + "source": "https://github.com/symfony/polyfill-intl-icu/tree/v1.43.3" }, "funding": [ { @@ -5826,20 +5833,20 @@ "type": "tidelift" } ], - "time": "2026-05-25T11:52:53+00:00" + "time": "2026-10-27T15:55:21+00:00" }, { "name": "symfony/polyfill-intl-idn", - "version": "v1.42.0", + "version": "v1.43.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-idn.git", - "reference": "51b5ff5ba85452b31ec6f55490b08148612339d9" + "reference": "533d68cf99c8f8ee2e8893c59ed59192e92cfd74" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/51b5ff5ba85452b31ec6f55490b08148612339d9", - "reference": "51b5ff5ba85452b31ec6f55490b08148612339d9", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/533d68cf99c8f8ee2e8893c59ed59192e92cfd74", + "reference": "533d68cf99c8f8ee2e8893c59ed59192e92cfd74", "shasum": "" }, "require": { @@ -5893,7 +5900,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.42.0" + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.43.0" }, "funding": [ { @@ -5913,20 +5920,20 @@ "type": "tidelift" } ], - "time": "2026-08-24T10:51:20+00:00" + "time": "2026-09-23T14:40:04+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.42.0", + "version": "v1.43.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "aa20edea75bd9c48cfecc8360922e5a6e5c44502" + "reference": "ebd57ccc7edb93d632e184efbe7693d2517bab3b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/aa20edea75bd9c48cfecc8360922e5a6e5c44502", - "reference": "aa20edea75bd9c48cfecc8360922e5a6e5c44502", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/ebd57ccc7edb93d632e184efbe7693d2517bab3b", + "reference": "ebd57ccc7edb93d632e184efbe7693d2517bab3b", "shasum": "" }, "require": { @@ -5978,7 +5985,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.42.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.43.0" }, "funding": [ { @@ -5998,20 +6005,20 @@ "type": "tidelift" } ], - "time": "2026-08-07T06:33:24+00:00" + "time": "2026-09-23T22:02:09+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.38.2", + "version": "v1.43.3", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6" + "reference": "122889ed24dc000165bcbfd77ec412f15cbdfc6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6", - "reference": "d3d318bad5e7a1bfbd026009c8bfb8d8f99ae6b6", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/122889ed24dc000165bcbfd77ec412f15cbdfc6a", + "reference": "122889ed24dc000165bcbfd77ec412f15cbdfc6a", "shasum": "" }, "require": { @@ -6063,7 +6070,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.38.2" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.43.3" }, "funding": [ { @@ -6083,20 +6090,20 @@ "type": "tidelift" } ], - "time": "2026-05-27T06:59:30+00:00" + "time": "2026-10-28T09:35:49+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.37.0", + "version": "v1.43.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411" + "reference": "9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dfb55726c3a76ea3b6459fcfda1ec2d80a682411", - "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74", + "reference": "9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74", "shasum": "" }, "require": { @@ -6147,7 +6154,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.37.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.43.0" }, "funding": [ { @@ -6167,7 +6174,7 @@ "type": "tidelift" } ], - "time": "2026-04-10T16:19:22+00:00" + "time": "2026-09-25T15:50:05+00:00" }, { "name": "symfony/polyfill-php81", @@ -6251,16 +6258,16 @@ }, { "name": "symfony/polyfill-php82", - "version": "v1.38.1", + "version": "v1.43.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php82.git", - "reference": "002dc0cfe5fd4ed6033d48f27d4f19a486c4b04b" + "reference": "843bbe8b2a7934307b749751eede0f111f5d1cfc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php82/zipball/002dc0cfe5fd4ed6033d48f27d4f19a486c4b04b", - "reference": "002dc0cfe5fd4ed6033d48f27d4f19a486c4b04b", + "url": "https://api.github.com/repos/symfony/polyfill-php82/zipball/843bbe8b2a7934307b749751eede0f111f5d1cfc", + "reference": "843bbe8b2a7934307b749751eede0f111f5d1cfc", "shasum": "" }, "require": { @@ -6307,7 +6314,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php82/tree/v1.38.1" + "source": "https://github.com/symfony/polyfill-php82/tree/v1.43.0" }, "funding": [ { @@ -6327,20 +6334,20 @@ "type": "tidelift" } ], - "time": "2026-05-26T12:45:58+00:00" + "time": "2026-09-25T15:50:05+00:00" }, { "name": "symfony/polyfill-php84", - "version": "v1.38.1", + "version": "v1.43.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php84.git", - "reference": "f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa" + "reference": "22c6548499cbe5c5bb072fc0c42312dff062a015" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa", - "reference": "f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/22c6548499cbe5c5bb072fc0c42312dff062a015", + "reference": "22c6548499cbe5c5bb072fc0c42312dff062a015", "shasum": "" }, "require": { @@ -6387,7 +6394,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php84/tree/v1.38.1" + "source": "https://github.com/symfony/polyfill-php84/tree/v1.43.0" }, "funding": [ { @@ -6407,20 +6414,20 @@ "type": "tidelift" } ], - "time": "2026-05-26T12:51:13+00:00" + "time": "2026-09-23T22:01:09+00:00" }, { "name": "symfony/polyfill-php85", - "version": "v1.41.0", + "version": "v1.43.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php85.git", - "reference": "255fab485aaa1006ed411040c42aecd7b5302d7a" + "reference": "86a42cbcc07adc331481a5ab310a4024bfc227f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/255fab485aaa1006ed411040c42aecd7b5302d7a", - "reference": "255fab485aaa1006ed411040c42aecd7b5302d7a", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/86a42cbcc07adc331481a5ab310a4024bfc227f6", + "reference": "86a42cbcc07adc331481a5ab310a4024bfc227f6", "shasum": "" }, "require": { @@ -6467,7 +6474,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php85/tree/v1.41.0" + "source": "https://github.com/symfony/polyfill-php85/tree/v1.43.0" }, "funding": [ { @@ -6487,20 +6494,20 @@ "type": "tidelift" } ], - "time": "2026-07-01T12:47:55+00:00" + "time": "2026-09-25T15:46:47+00:00" }, { "name": "symfony/polyfill-php86", - "version": "v1.41.0", + "version": "v1.43.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php86.git", - "reference": "6bc356ed3d8dbfeea8f0de235e34d670704e880e" + "reference": "8840df45b24f33a49dc419fa18dc0057231ae1d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php86/zipball/6bc356ed3d8dbfeea8f0de235e34d670704e880e", - "reference": "6bc356ed3d8dbfeea8f0de235e34d670704e880e", + "url": "https://api.github.com/repos/symfony/polyfill-php86/zipball/8840df45b24f33a49dc419fa18dc0057231ae1d8", + "reference": "8840df45b24f33a49dc419fa18dc0057231ae1d8", "shasum": "" }, "require": { @@ -6547,7 +6554,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php86/tree/v1.41.0" + "source": "https://github.com/symfony/polyfill-php86/tree/v1.43.0" }, "funding": [ { @@ -6567,20 +6574,103 @@ "type": "tidelift" } ], - "time": "2026-07-02T13:42:24+00:00" + "time": "2026-09-25T15:46:47+00:00" }, { - "name": "symfony/polyfill-uuid", - "version": "v1.37.0", + "name": "symfony/polyfill-time", + "version": "v1.42.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-uuid.git", - "reference": "26dfec253c4cf3e51b541b52ddf7e42cb0908e94" + "url": "https://github.com/symfony/polyfill-time.git", + "reference": "ac9f1ed802dd58f37e720388130c088434aa09fc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/26dfec253c4cf3e51b541b52ddf7e42cb0908e94", - "reference": "26dfec253c4cf3e51b541b52ddf7e42cb0908e94", + "url": "https://api.github.com/repos/symfony/polyfill-time/zipball/ac9f1ed802dd58f37e720388130c088434aa09fc", + "reference": "ac9f1ed802dd58f37e720388130c088434aa09fc", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Time\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Philippe Nyamagana Butera", + "email": "nyamsprod@gmail.com" + }, + { + "name": "Tim Düsterhus", + "email": "tim@tideways-gmbh.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Time API added to PHP 8.6", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "duration", + "polyfill", + "portable", + "shim", + "time" + ], + "support": { + "source": "https://github.com/symfony/polyfill-time/tree/v1.42.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-08-07T13:08:13+00:00" + }, + { + "name": "symfony/polyfill-uuid", + "version": "v1.43.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-uuid.git", + "reference": "b23ff8245cc5c4479ea2be3d0132d2e6dd433993" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/b23ff8245cc5c4479ea2be3d0132d2e6dd433993", + "reference": "b23ff8245cc5c4479ea2be3d0132d2e6dd433993", "shasum": "" }, "require": { @@ -6630,7 +6720,7 @@ "uuid" ], "support": { - "source": "https://github.com/symfony/polyfill-uuid/tree/v1.37.0" + "source": "https://github.com/symfony/polyfill-uuid/tree/v1.43.0" }, "funding": [ { @@ -6650,20 +6740,20 @@ "type": "tidelift" } ], - "time": "2026-04-10T16:19:22+00:00" + "time": "2026-09-24T05:20:52+00:00" }, { "name": "symfony/process", - "version": "v8.1.7", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "10823b09358e690df4ff943e24e8492bb1019fc3" + "reference": "08aa69fa0998bb65a089f9e148a2c0f8b391398e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/10823b09358e690df4ff943e24e8492bb1019fc3", - "reference": "10823b09358e690df4ff943e24e8492bb1019fc3", + "url": "https://api.github.com/repos/symfony/process/zipball/08aa69fa0998bb65a089f9e148a2c0f8b391398e", + "reference": "08aa69fa0998bb65a089f9e148a2c0f8b391398e", "shasum": "" }, "require": { @@ -6695,7 +6785,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v8.1.7" + "source": "https://github.com/symfony/process/tree/v8.1.10" }, "funding": [ { @@ -6715,20 +6805,20 @@ "type": "tidelift" } ], - "time": "2026-09-02T12:40:29+00:00" + "time": "2026-10-25T14:40:25+00:00" }, { "name": "symfony/property-access", - "version": "v8.1.4", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", - "reference": "1a41232c678972b93ce499a504e19ea09dfcd0b2" + "reference": "38ce2d539230c1d0e3c42198289c4bae5e931727" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-access/zipball/1a41232c678972b93ce499a504e19ea09dfcd0b2", - "reference": "1a41232c678972b93ce499a504e19ea09dfcd0b2", + "url": "https://api.github.com/repos/symfony/property-access/zipball/38ce2d539230c1d0e3c42198289c4bae5e931727", + "reference": "38ce2d539230c1d0e3c42198289c4bae5e931727", "shasum": "" }, "require": { @@ -6776,7 +6866,7 @@ "reflection" ], "support": { - "source": "https://github.com/symfony/property-access/tree/v8.1.4" + "source": "https://github.com/symfony/property-access/tree/v8.1.10" }, "funding": [ { @@ -6796,20 +6886,20 @@ "type": "tidelift" } ], - "time": "2026-07-30T12:40:56+00:00" + "time": "2026-10-26T21:55:04+00:00" }, { "name": "symfony/property-info", - "version": "v8.1.7", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/property-info.git", - "reference": "b42ee98197831d33788c33492cfc35ba62d1f701" + "reference": "cb5bfc9fbc9da75fdb1b8860a29d9c4fefb2b924" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-info/zipball/b42ee98197831d33788c33492cfc35ba62d1f701", - "reference": "b42ee98197831d33788c33492cfc35ba62d1f701", + "url": "https://api.github.com/repos/symfony/property-info/zipball/cb5bfc9fbc9da75fdb1b8860a29d9c4fefb2b924", + "reference": "cb5bfc9fbc9da75fdb1b8860a29d9c4fefb2b924", "shasum": "" }, "require": { @@ -6862,7 +6952,7 @@ "validator" ], "support": { - "source": "https://github.com/symfony/property-info/tree/v8.1.7" + "source": "https://github.com/symfony/property-info/tree/v8.1.10" }, "funding": [ { @@ -6882,20 +6972,20 @@ "type": "tidelift" } ], - "time": "2026-09-04T10:14:04+00:00" + "time": "2026-10-25T14:40:25+00:00" }, { "name": "symfony/routing", - "version": "v8.1.6", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "3c188091b6b4fa2e4bc83a135caede12deb8576c" + "reference": "41b32d2c5d907abe2c3ffaa7a112dd7492353822" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/3c188091b6b4fa2e4bc83a135caede12deb8576c", - "reference": "3c188091b6b4fa2e4bc83a135caede12deb8576c", + "url": "https://api.github.com/repos/symfony/routing/zipball/41b32d2c5d907abe2c3ffaa7a112dd7492353822", + "reference": "41b32d2c5d907abe2c3ffaa7a112dd7492353822", "shasum": "" }, "require": { @@ -6942,7 +7032,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v8.1.6" + "source": "https://github.com/symfony/routing/tree/v8.1.10" }, "funding": [ { @@ -6962,20 +7052,20 @@ "type": "tidelift" } ], - "time": "2026-08-17T13:18:34+00:00" + "time": "2026-10-26T21:55:04+00:00" }, { "name": "symfony/serializer", - "version": "v8.1.7", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "9a88015b4bb1a2bc5a3bbdf6ca3025444ba67321" + "reference": "b9b8831cd84a5304e43f2bb92cb0e88290ba2082" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/9a88015b4bb1a2bc5a3bbdf6ca3025444ba67321", - "reference": "9a88015b4bb1a2bc5a3bbdf6ca3025444ba67321", + "url": "https://api.github.com/repos/symfony/serializer/zipball/b9b8831cd84a5304e43f2bb92cb0e88290ba2082", + "reference": "b9b8831cd84a5304e43f2bb92cb0e88290ba2082", "shasum": "" }, "require": { @@ -7041,7 +7131,7 @@ "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/serializer/tree/v8.1.7" + "source": "https://github.com/symfony/serializer/tree/v8.1.10" }, "funding": [ { @@ -7061,7 +7151,7 @@ "type": "tidelift" } ], - "time": "2026-09-08T13:39:13+00:00" + "time": "2026-10-25T14:40:25+00:00" }, { "name": "symfony/service-contracts", @@ -7152,16 +7242,16 @@ }, { "name": "symfony/string", - "version": "v8.1.7", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "d950140b5f56f31901e5b7a0c04ffc3a3deb943c" + "reference": "6c6110979c0150393bbb336170e286d51ab4d76c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/d950140b5f56f31901e5b7a0c04ffc3a3deb943c", - "reference": "d950140b5f56f31901e5b7a0c04ffc3a3deb943c", + "url": "https://api.github.com/repos/symfony/string/zipball/6c6110979c0150393bbb336170e286d51ab4d76c", + "reference": "6c6110979c0150393bbb336170e286d51ab4d76c", "shasum": "" }, "require": { @@ -7218,7 +7308,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v8.1.7" + "source": "https://github.com/symfony/string/tree/v8.1.10" }, "funding": [ { @@ -7238,20 +7328,20 @@ "type": "tidelift" } ], - "time": "2026-09-11T14:51:16+00:00" + "time": "2026-10-23T17:06:53+00:00" }, { "name": "symfony/translation", - "version": "v8.1.5", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "d9e1caba0d6b6f9a26710af8a2f88d37f001215a" + "reference": "8fbbb32f4bbbece5079acb01ab648fd20583fc93" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/d9e1caba0d6b6f9a26710af8a2f88d37f001215a", - "reference": "d9e1caba0d6b6f9a26710af8a2f88d37f001215a", + "url": "https://api.github.com/repos/symfony/translation/zipball/8fbbb32f4bbbece5079acb01ab648fd20583fc93", + "reference": "8fbbb32f4bbbece5079acb01ab648fd20583fc93", "shasum": "" }, "require": { @@ -7311,7 +7401,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v8.1.5" + "source": "https://github.com/symfony/translation/tree/v8.1.10" }, "funding": [ { @@ -7331,7 +7421,7 @@ "type": "tidelift" } ], - "time": "2026-08-21T17:47:34+00:00" + "time": "2026-10-25T14:40:25+00:00" }, { "name": "symfony/translation-contracts", @@ -7417,16 +7507,16 @@ }, { "name": "symfony/type-info", - "version": "v8.1.5", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/type-info.git", - "reference": "ceb48db5b38d6a48640c414be0c69d53980ae5c5" + "reference": "2083d4516f9041b8ac550d9029afb08fcf09d0ad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/type-info/zipball/ceb48db5b38d6a48640c414be0c69d53980ae5c5", - "reference": "ceb48db5b38d6a48640c414be0c69d53980ae5c5", + "url": "https://api.github.com/repos/symfony/type-info/zipball/2083d4516f9041b8ac550d9029afb08fcf09d0ad", + "reference": "2083d4516f9041b8ac550d9029afb08fcf09d0ad", "shasum": "" }, "require": { @@ -7475,7 +7565,7 @@ "type" ], "support": { - "source": "https://github.com/symfony/type-info/tree/v8.1.5" + "source": "https://github.com/symfony/type-info/tree/v8.1.10" }, "funding": [ { @@ -7495,20 +7585,20 @@ "type": "tidelift" } ], - "time": "2026-08-21T17:47:34+00:00" + "time": "2026-10-25T14:40:25+00:00" }, { "name": "symfony/uid", - "version": "v8.1.5", + "version": "v8.1.9", "source": { "type": "git", "url": "https://github.com/symfony/uid.git", - "reference": "a08aef47989093f32fe50fd11859be1b427df389" + "reference": "cb487cf30380f0b0b090973bb9c0588193c06685" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/uid/zipball/a08aef47989093f32fe50fd11859be1b427df389", - "reference": "a08aef47989093f32fe50fd11859be1b427df389", + "url": "https://api.github.com/repos/symfony/uid/zipball/cb487cf30380f0b0b090973bb9c0588193c06685", + "reference": "cb487cf30380f0b0b090973bb9c0588193c06685", "shasum": "" }, "require": { @@ -7553,7 +7643,7 @@ "uuid" ], "support": { - "source": "https://github.com/symfony/uid/tree/v8.1.5" + "source": "https://github.com/symfony/uid/tree/v8.1.9" }, "funding": [ { @@ -7573,20 +7663,20 @@ "type": "tidelift" } ], - "time": "2026-08-11T13:39:01+00:00" + "time": "2026-10-12T14:32:04+00:00" }, { "name": "symfony/var-dumper", - "version": "v8.1.7", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "741a8c4c948b0bb9bd3653daacd3644c73c40ea5" + "reference": "3412a5af7d34a19515a77890fc804fe8e50d1a4f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/741a8c4c948b0bb9bd3653daacd3644c73c40ea5", - "reference": "741a8c4c948b0bb9bd3653daacd3644c73c40ea5", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/3412a5af7d34a19515a77890fc804fe8e50d1a4f", + "reference": "3412a5af7d34a19515a77890fc804fe8e50d1a4f", "shasum": "" }, "require": { @@ -7640,7 +7730,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v8.1.7" + "source": "https://github.com/symfony/var-dumper/tree/v8.1.10" }, "funding": [ { @@ -7660,7 +7750,7 @@ "type": "tidelift" } ], - "time": "2026-09-03T16:02:27+00:00" + "time": "2026-10-26T21:55:04+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", @@ -7719,16 +7809,16 @@ }, { "name": "vlucas/phpdotenv", - "version": "v5.7.0", + "version": "v5.8.0", "source": { "type": "git", - "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "301c07936b16d88628b126b01d082ba153cf4c40" + "url": "https://github.com/phpdotenv/phpdotenv.git", + "reference": "96149103e62ac67e915f6d2ef59b72dee2e011e0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/301c07936b16d88628b126b01d082ba153cf4c40", - "reference": "301c07936b16d88628b126b01d082ba153cf4c40", + "url": "https://api.github.com/repos/phpdotenv/phpdotenv/zipball/96149103e62ac67e915f6d2ef59b72dee2e011e0", + "reference": "96149103e62ac67e915f6d2ef59b72dee2e011e0", "shasum": "" }, "require": { @@ -7755,7 +7845,7 @@ "forward-command": false }, "branch-alias": { - "dev-master": "5.6-dev" + "dev-master": "5.8-dev" } }, "autoload": { @@ -7786,8 +7876,8 @@ "environment" ], "support": { - "issues": "https://github.com/vlucas/phpdotenv/issues", - "source": "https://github.com/vlucas/phpdotenv/tree/v5.7.0" + "issues": "https://github.com/phpdotenv/phpdotenv/issues", + "source": "https://github.com/phpdotenv/phpdotenv/tree/v5.8.0" }, "funding": [ { @@ -7799,7 +7889,7 @@ "type": "tidelift" } ], - "time": "2026-08-24T18:07:49+00:00" + "time": "2026-10-25T16:26:19+00:00" }, { "name": "voku/portable-ascii", @@ -8038,16 +8128,16 @@ }, { "name": "webmozart/assert", - "version": "2.4.1", + "version": "2.5.0", "source": { "type": "git", "url": "https://github.com/webmozarts/assert.git", - "reference": "2ccb7c2e821038c03a3e6e1700c570c158c55f70" + "reference": "8a163706bbcac613733dba03f51e13b5eb1bb819" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/2ccb7c2e821038c03a3e6e1700c570c158c55f70", - "reference": "2ccb7c2e821038c03a3e6e1700c570c158c55f70", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/8a163706bbcac613733dba03f51e13b5eb1bb819", + "reference": "8a163706bbcac613733dba03f51e13b5eb1bb819", "shasum": "" }, "require": { @@ -8098,24 +8188,24 @@ ], "support": { "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/2.4.1" + "source": "https://github.com/webmozarts/assert/tree/2.5.0" }, - "time": "2026-06-15T15:31:57+00:00" + "time": "2026-10-05T23:14:19+00:00" } ], "packages-dev": [ { "name": "brianium/paratest", - "version": "v7.24.1", + "version": "v7.27.5", "source": { "type": "git", "url": "https://github.com/paratestphp/paratest.git", - "reference": "c29bc43a5cdd0124b7eff959064ae83ea902b49a" + "reference": "fe4a1fd811fd79ead7476fa109c5f4ed721cc18a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paratestphp/paratest/zipball/c29bc43a5cdd0124b7eff959064ae83ea902b49a", - "reference": "c29bc43a5cdd0124b7eff959064ae83ea902b49a", + "url": "https://api.github.com/repos/paratestphp/paratest/zipball/fe4a1fd811fd79ead7476fa109c5f4ed721cc18a", + "reference": "fe4a1fd811fd79ead7476fa109c5f4ed721cc18a", "shasum": "" }, "require": { @@ -8123,27 +8213,27 @@ "ext-pcre": "*", "ext-reflection": "*", "ext-simplexml": "*", - "fidry/cpu-core-counter": "^1.3.0", + "fidry/cpu-core-counter": "^1.4.1", "jean85/pretty-package-versions": "^2.1.1", - "php": "~8.4.0 || ~8.5.0", - "phpunit/php-code-coverage": "^14.3.1", - "phpunit/php-file-iterator": "^7", + "php": "~8.4.0 || ~8.5.0 || ~8.6.0", + "phpunit/php-code-coverage": "^14.4.1", + "phpunit/php-file-iterator": "^7.0.2", "phpunit/php-timer": "^9", - "phpunit/phpunit": "^13.3.1", - "sebastian/environment": "^9.3.2", - "symfony/console": "^7.4.8 || ^8.1.2", - "symfony/process": "^7.4.8 || ^8.1.0" + "phpunit/phpunit": "^13.4.3", + "sebastian/environment": "^9.3.3", + "symfony/console": "^7.4.20 || ^8.1.8", + "symfony/process": "^7.4.19 || ^8.1.7" }, "require-dev": { "doctrine/coding-standard": "^14.0.0", "ext-pcntl": "*", "ext-pcov": "*", "ext-posix": "*", - "phpstan/phpstan": "^2.2.8", + "phpstan/phpstan": "^2.3.2", "phpstan/phpstan-deprecation-rules": "^2.0.5", - "phpstan/phpstan-phpunit": "^2.0.18", - "phpstan/phpstan-strict-rules": "^2.0.12", - "symfony/filesystem": "^7.4.8 || ^8.1.2" + "phpstan/phpstan-phpunit": "^2.1.1", + "phpstan/phpstan-strict-rules": "^2.1.0", + "symfony/filesystem": "^7.4.18 || ^8.1.6" }, "bin": [ "bin/paratest", @@ -8183,7 +8273,7 @@ ], "support": { "issues": "https://github.com/paratestphp/paratest/issues", - "source": "https://github.com/paratestphp/paratest/tree/v7.24.1" + "source": "https://github.com/paratestphp/paratest/tree/v7.27.5" }, "funding": [ { @@ -8195,20 +8285,20 @@ "type": "paypal" } ], - "time": "2026-08-17T06:31:26+00:00" + "time": "2026-10-29T13:58:46+00:00" }, { "name": "composer/semver", - "version": "3.4.4", + "version": "3.6.0", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95" + "reference": "d92543b7ede9c4ec6b59853cefb061e39866d2cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/198166618906cb2de69b95d7d47e5fa8aa1b2b95", - "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95", + "url": "https://api.github.com/repos/composer/semver/zipball/d92543b7ede9c4ec6b59853cefb061e39866d2cf", + "reference": "d92543b7ede9c4ec6b59853cefb061e39866d2cf", "shasum": "" }, "require": { @@ -8250,7 +8340,7 @@ "homepage": "http://robbast.nl" } ], - "description": "Semver library that offers utilities, version constraint parsing and validation.", + "description": "Version comparison library that offers utilities, version constraint parsing and validation.", "keywords": [ "semantic", "semver", @@ -8260,7 +8350,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.4.4" + "source": "https://github.com/composer/semver/tree/3.6.0" }, "funding": [ { @@ -8272,7 +8362,7 @@ "type": "github" } ], - "time": "2025-08-20T19:15:30+00:00" + "time": "2026-10-29T09:13:34+00:00" }, { "name": "fakerphp/faker", @@ -8339,23 +8429,23 @@ }, { "name": "fidry/cpu-core-counter", - "version": "1.3.0", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/theofidry/cpu-core-counter.git", - "reference": "db9508f7b1474469d9d3c53b86f817e344732678" + "reference": "d384a7d0d6e67aa497327260ca95023e92dc2032" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/db9508f7b1474469d9d3c53b86f817e344732678", - "reference": "db9508f7b1474469d9d3c53b86f817e344732678", + "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/d384a7d0d6e67aa497327260ca95023e92dc2032", + "reference": "d384a7d0d6e67aa497327260ca95023e92dc2032", "shasum": "" }, "require": { "php": "^7.2 || ^8.0" }, "require-dev": { - "fidry/makefile": "^0.2.0", + "fidry/makefile": "^0.2.0 || ^1.1.2", "fidry/php-cs-fixer-config": "^1.1.2", "phpstan/extension-installer": "^1.2.0", "phpstan/phpstan": "^2.0", @@ -8363,6 +8453,7 @@ "phpstan/phpstan-phpunit": "^2.0", "phpstan/phpstan-strict-rules": "^2.0", "phpunit/phpunit": "^8.5.31 || ^9.5.26", + "symfony/polyfill-mbstring": "^1.33", "webmozarts/strict-phpunit": "^7.5" }, "type": "library", @@ -8388,7 +8479,7 @@ ], "support": { "issues": "https://github.com/theofidry/cpu-core-counter/issues", - "source": "https://github.com/theofidry/cpu-core-counter/tree/1.3.0" + "source": "https://github.com/theofidry/cpu-core-counter/tree/1.4.1" }, "funding": [ { @@ -8396,20 +8487,20 @@ "type": "github" } ], - "time": "2025-08-14T07:29:31+00:00" + "time": "2026-09-29T22:11:39+00:00" }, { "name": "filp/whoops", - "version": "2.18.4", + "version": "2.18.7", "source": { "type": "git", "url": "https://github.com/filp/whoops.git", - "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d" + "reference": "50670ba239926c50f2073e868f6672f775cd57ec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/d2102955e48b9fd9ab24280a7ad12ed552752c4d", - "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d", + "url": "https://api.github.com/repos/filp/whoops/zipball/50670ba239926c50f2073e868f6672f775cd57ec", + "reference": "50670ba239926c50f2073e868f6672f775cd57ec", "shasum": "" }, "require": { @@ -8418,8 +8509,8 @@ }, "require-dev": { "mockery/mockery": "^1.0", - "phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.3", - "symfony/var-dumper": "^4.0 || ^5.0" + "phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.3 || ^10.5.58", + "symfony/var-dumper": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0" }, "suggest": { "symfony/var-dumper": "Pretty print complex values better with var-dumper available", @@ -8459,7 +8550,7 @@ ], "support": { "issues": "https://github.com/filp/whoops/issues", - "source": "https://github.com/filp/whoops/tree/2.18.4" + "source": "https://github.com/filp/whoops/tree/2.18.7" }, "funding": [ { @@ -8467,7 +8558,7 @@ "type": "github" } ], - "time": "2025-08-08T12:00:00+00:00" + "time": "2026-10-18T13:17:38+00:00" }, { "name": "hamcrest/hamcrest-php", @@ -8627,16 +8718,16 @@ }, { "name": "larastan/larastan", - "version": "v3.12.1", + "version": "v3.13.2", "source": { "type": "git", "url": "https://github.com/larastan/larastan.git", - "reference": "168fd3b955e723c51dbf81709849b0c3ac4ac5f6" + "reference": "0de9aec250ab498f97171b43cd1192ce11a8c8fc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/larastan/larastan/zipball/168fd3b955e723c51dbf81709849b0c3ac4ac5f6", - "reference": "168fd3b955e723c51dbf81709849b0c3ac4ac5f6", + "url": "https://api.github.com/repos/larastan/larastan/zipball/0de9aec250ab498f97171b43cd1192ce11a8c8fc", + "reference": "0de9aec250ab498f97171b43cd1192ce11a8c8fc", "shasum": "" }, "require": { @@ -8649,7 +8740,7 @@ "illuminate/pipeline": "^11.44.2 || ^12.4.1 || ^13", "illuminate/support": "^11.44.2 || ^12.4.1 || ^13", "php": "^8.2", - "phpstan/phpstan": "^2.2.14" + "phpstan/phpstan": "^2.3.0" }, "require-dev": { "doctrine/coding-standard": "^14", @@ -8704,7 +8795,7 @@ ], "support": { "issues": "https://github.com/larastan/larastan/issues", - "source": "https://github.com/larastan/larastan/tree/v3.12.1" + "source": "https://github.com/larastan/larastan/tree/v3.13.2" }, "funding": [ { @@ -8712,20 +8803,20 @@ "type": "github" } ], - "time": "2026-09-13T15:17:35+00:00" + "time": "2026-10-23T21:03:09+00:00" }, { "name": "laravel/agent-detector", - "version": "v2.0.2", + "version": "v2.0.5", "source": { "type": "git", "url": "https://github.com/laravel/agent-detector.git", - "reference": "90694b9256099591cf9e55d08c18ba7a00bf099f" + "reference": "9e0d78ab6848d34f3ce5a438ca99ae082afd910a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/agent-detector/zipball/90694b9256099591cf9e55d08c18ba7a00bf099f", - "reference": "90694b9256099591cf9e55d08c18ba7a00bf099f", + "url": "https://api.github.com/repos/laravel/agent-detector/zipball/9e0d78ab6848d34f3ce5a438ca99ae082afd910a", + "reference": "9e0d78ab6848d34f3ce5a438ca99ae082afd910a", "shasum": "" }, "require": { @@ -8774,20 +8865,20 @@ "issues": "https://github.com/laravel/agent-detector/issues", "source": "https://github.com/laravel/agent-detector" }, - "time": "2026-04-29T18:32:34+00:00" + "time": "2026-10-20T16:40:29+00:00" }, { "name": "laravel/boost", - "version": "v2.9.1", + "version": "v2.10.4", "source": { "type": "git", "url": "https://github.com/laravel/boost.git", - "reference": "2da6cbfdc6399d69b49a2dfb1e4f4eaf6bb419f0" + "reference": "9cd5e7d81300b5dee4c8b1619ec4b36f4a6367fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/boost/zipball/2da6cbfdc6399d69b49a2dfb1e4f4eaf6bb419f0", - "reference": "2da6cbfdc6399d69b49a2dfb1e4f4eaf6bb419f0", + "url": "https://api.github.com/repos/laravel/boost/zipball/9cd5e7d81300b5dee4c8b1619ec4b36f4a6367fd", + "reference": "9cd5e7d81300b5dee4c8b1619ec4b36f4a6367fd", "shasum": "" }, "require": { @@ -8802,10 +8893,11 @@ "php": "^8.2" }, "require-dev": { + "jasonmccreary/double": "^1.0", "laravel/pint": "^1.27.0", "mockery/mockery": "^1.6.12", "orchestra/testbench": "^9.15.0|^10.6|^11.0", - "pestphp/pest": "^2.36.0|^3.8.4|^4.1.5", + "pestphp/pest": "^2.36.0|^3.8.4|^4.1.5|^5.3.3", "phpstan/phpstan": "^2.1.27", "rector/rector": "^2.1" }, @@ -8840,20 +8932,20 @@ "issues": "https://github.com/laravel/boost/issues", "source": "https://github.com/laravel/boost" }, - "time": "2026-09-17T02:40:42+00:00" + "time": "2026-10-29T18:31:16+00:00" }, { "name": "laravel/mcp", - "version": "v1.0.0", + "version": "v1.1.2", "source": { "type": "git", "url": "https://github.com/laravel/mcp.git", - "reference": "cfa4f38f82873eeb6848527883545f98f871e229" + "reference": "ab9238ce6c89095679651dd3d19d67641d73a436" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/mcp/zipball/cfa4f38f82873eeb6848527883545f98f871e229", - "reference": "cfa4f38f82873eeb6848527883545f98f871e229", + "url": "https://api.github.com/repos/laravel/mcp/zipball/ab9238ce6c89095679651dd3d19d67641d73a436", + "reference": "ab9238ce6c89095679651dd3d19d67641d73a436", "shasum": "" }, "require": { @@ -8871,6 +8963,7 @@ "symfony/process": "^7.4.5|^8.0.5" }, "require-dev": { + "jasonmccreary/double": "^1.0", "laravel/pint": "^1.20", "orchestra/testbench": "^9.15|^10.8|^11.0", "pestphp/pest": "^3.8.5|^4.3.2", @@ -8914,7 +9007,7 @@ "issues": "https://github.com/laravel/mcp/issues", "source": "https://github.com/laravel/mcp" }, - "time": "2026-09-14T14:35:19+00:00" + "time": "2026-10-26T17:48:48+00:00" }, { "name": "laravel/pail", @@ -9215,16 +9308,16 @@ }, { "name": "laravel/sail", - "version": "v1.67.0", + "version": "v1.69.0", "source": { "type": "git", "url": "https://github.com/laravel/sail.git", - "reference": "639e03ac12cf23def171770bcab05758045b2642" + "reference": "3587ac9d68e8f2eaf36bd9fb003a4555861dca9d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/sail/zipball/639e03ac12cf23def171770bcab05758045b2642", - "reference": "639e03ac12cf23def171770bcab05758045b2642", + "url": "https://api.github.com/repos/laravel/sail/zipball/3587ac9d68e8f2eaf36bd9fb003a4555861dca9d", + "reference": "3587ac9d68e8f2eaf36bd9fb003a4555861dca9d", "shasum": "" }, "require": { @@ -9274,7 +9367,7 @@ "issues": "https://github.com/laravel/sail/issues", "source": "https://github.com/laravel/sail" }, - "time": "2026-08-12T13:55:56+00:00" + "time": "2026-10-08T20:06:52+00:00" }, { "name": "mockery/mockery", @@ -9516,43 +9609,43 @@ }, { "name": "pestphp/pest", - "version": "v5.2.1", + "version": "v5.3.4", "source": { "type": "git", "url": "https://github.com/pestphp/pest.git", - "reference": "94f4f1ff4835dae2519f8b13f349d1042318e076" + "reference": "159514bacefb30fd674aa74c52738f8a535bfaa9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest/zipball/94f4f1ff4835dae2519f8b13f349d1042318e076", - "reference": "94f4f1ff4835dae2519f8b13f349d1042318e076", + "url": "https://api.github.com/repos/pestphp/pest/zipball/159514bacefb30fd674aa74c52738f8a535bfaa9", + "reference": "159514bacefb30fd674aa74c52738f8a535bfaa9", "shasum": "" }, "require": { - "brianium/paratest": "^7.24.1", + "brianium/paratest": "^7.27.4", "nunomaduro/collision": "^8.9.5", "nunomaduro/termwind": "^2.4.0", "pestphp/pest-plugin": "^5.0.0", "pestphp/pest-plugin-arch": "^5.0.0", "pestphp/pest-plugin-mutate": "^5.0.2", - "pestphp/pest-plugin-profanity": "^5.0.0", + "pestphp/pest-plugin-profanity": "^5.0.1", "php": "^8.4", - "phpunit/phpunit": "^13.3.4", - "symfony/process": "^8.1.7" + "phpunit/phpunit": "^13.4.5", + "symfony/process": "^8.1.9" }, "conflict": { "filp/whoops": "<2.18.3", "laravel/boost": "<2.6.0", - "phpunit/phpunit": ">13.3.4", + "phpunit/phpunit": ">13.4.5", "sebastian/exporter": "<7.0.0", "webmozart/assert": "<1.11.0" }, "require-dev": { "pestphp/pest-dev-tools": "^5.0.0", - "pestphp/pest-plugin-browser": "^5.0.1", - "pestphp/pest-plugin-phpstan": "^5.2.1", - "pestphp/pest-plugin-rector": "^5.0.4", - "pestphp/pest-plugin-type-coverage": "^5.0.2", + "pestphp/pest-plugin-browser": "^5.1.2", + "pestphp/pest-plugin-phpstan": "^5.2.2", + "pestphp/pest-plugin-rector": "^5.0.6", + "pestphp/pest-plugin-type-coverage": "^5.0.3", "psy/psysh": "^0.12.24" }, "bin": [ @@ -9620,7 +9713,7 @@ ], "support": { "issues": "https://github.com/pestphp/pest/issues", - "source": "https://github.com/pestphp/pest/tree/v5.2.1" + "source": "https://github.com/pestphp/pest/tree/v5.3.4" }, "funding": [ { @@ -9632,7 +9725,7 @@ "type": "github" } ], - "time": "2026-09-17T11:41:10+00:00" + "time": "2026-10-27T11:04:36+00:00" }, { "name": "pestphp/pest-plugin", @@ -9936,16 +10029,16 @@ }, { "name": "pestphp/pest-plugin-profanity", - "version": "v5.0.0", + "version": "v5.0.1", "source": { "type": "git", "url": "https://github.com/pestphp/pest-plugin-profanity.git", - "reference": "3dedf9ea6e2876b5b31f7733d3eacbd86f4653b9" + "reference": "2b5fc73ce561b835ba5bf9596c97a84333af2eb8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest-plugin-profanity/zipball/3dedf9ea6e2876b5b31f7733d3eacbd86f4653b9", - "reference": "3dedf9ea6e2876b5b31f7733d3eacbd86f4653b9", + "url": "https://api.github.com/repos/pestphp/pest-plugin-profanity/zipball/2b5fc73ce561b835ba5bf9596c97a84333af2eb8", + "reference": "2b5fc73ce561b835ba5bf9596c97a84333af2eb8", "shasum": "" }, "require": { @@ -9953,7 +10046,8 @@ "php": "^8.4" }, "conflict": { - "pestphp/pest": "<5.0.0" + "pestphp/pest": "<5.0.0", + "phpunit/phpunit": "<13.4.1" }, "require-dev": { "faissaloux/pest-plugin-inside": "^1.11", @@ -9989,9 +10083,9 @@ "unit" ], "support": { - "source": "https://github.com/pestphp/pest-plugin-profanity/tree/v5.0.0" + "source": "https://github.com/pestphp/pest-plugin-profanity/tree/v5.0.1" }, - "time": "2026-07-21T07:48:56+00:00" + "time": "2026-10-07T19:41:52+00:00" }, { "name": "phar-io/manifest", @@ -10113,11 +10207,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.2.14", + "version": "2.3.4", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/9c672e7a8e791dfc3d30e55f683e73fc0b63a3ac", - "reference": "9c672e7a8e791dfc3d30e55f683e73fc0b63a3ac", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/f20ce6f3c82556cfcfc086b152445a12d1d64fff", + "reference": "f20ce6f3c82556cfcfc086b152445a12d1d64fff", "shasum": "" }, "require": { @@ -10173,20 +10267,20 @@ "type": "github" } ], - "time": "2026-09-12T21:39:33+00:00" + "time": "2026-10-28T22:38:53+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "14.3.3", + "version": "14.5.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "f8640c238e930b914d0098a1edbad6652e61a64a" + "reference": "1db2f40af7a6538742e4a634b71ee556d6219be7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f8640c238e930b914d0098a1edbad6652e61a64a", - "reference": "f8640c238e930b914d0098a1edbad6652e61a64a", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/1db2f40af7a6538742e4a634b71ee556d6219be7", + "reference": "1db2f40af7a6538742e4a634b71ee556d6219be7", "shasum": "" }, "require": { @@ -10194,18 +10288,17 @@ "ext-libxml": "*", "ext-mbstring": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^5.8.0", + "nikic/php-parser": "^5.9.0", "php": ">=8.4", - "phpunit/php-text-template": "^6.0", + "phpunit/php-text-template": "^6.0.1", "sebastian/complexity": "^6.0", - "sebastian/environment": "^9.3.2", - "sebastian/git-state": "^1.0", + "sebastian/environment": "^9.3.3", + "sebastian/git-state": "^1.1.0", "sebastian/lines-of-code": "^5.0.2", - "sebastian/version": "^7.0", - "theseer/tokenizer": "^2.0.1" + "sebastian/version": "^7.0.1" }, "require-dev": { - "phpunit/phpunit": "^13.3.3" + "phpunit/phpunit": "^13.4.5" }, "suggest": { "ext-pcov": "PHP extension that provides line coverage", @@ -10214,7 +10307,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "14.3.x-dev" + "dev-main": "14.5.x-dev" } }, "autoload": { @@ -10243,7 +10336,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/14.3.3" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/14.5.0" }, "funding": [ { @@ -10263,7 +10356,7 @@ "type": "tidelift" } ], - "time": "2026-09-10T13:08:32+00:00" + "time": "2026-10-30T08:11:15+00:00" }, { "name": "phpunit/php-file-iterator", @@ -10416,23 +10509,23 @@ }, { "name": "phpunit/php-text-template", - "version": "6.0.0", + "version": "6.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "a47af19f93f76aa3368303d752aa5272ca3299f4" + "reference": "97107691cb2b6c743b5e0c44be19e983cb337a02" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/a47af19f93f76aa3368303d752aa5272ca3299f4", - "reference": "a47af19f93f76aa3368303d752aa5272ca3299f4", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/97107691cb2b6c743b5e0c44be19e983cb337a02", + "reference": "97107691cb2b6c743b5e0c44be19e983cb337a02", "shasum": "" }, "require": { "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^13.0" + "phpunit/phpunit": "^13.3.6" }, "type": "library", "extra": { @@ -10464,7 +10557,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-text-template/issues", "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/6.0.0" + "source": "https://github.com/sebastianbergmann/php-text-template/tree/6.0.1" }, "funding": [ { @@ -10484,7 +10577,7 @@ "type": "tidelift" } ], - "time": "2026-02-06T04:36:37+00:00" + "time": "2026-10-03T04:54:24+00:00" }, { "name": "phpunit/php-timer", @@ -10560,16 +10653,16 @@ }, { "name": "phpunit/phpunit", - "version": "13.3.4", + "version": "13.4.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "d19d90cf860efb7e4d96cee8243e06a248578085" + "reference": "941457a4f147a60fe2074d40e1fce0d08ea8d930" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d19d90cf860efb7e4d96cee8243e06a248578085", - "reference": "d19d90cf860efb7e4d96cee8243e06a248578085", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/941457a4f147a60fe2074d40e1fce0d08ea8d930", + "reference": "941457a4f147a60fe2074d40e1fce0d08ea8d930", "shasum": "" }, "require": { @@ -10583,23 +10676,23 @@ "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", "php": ">=8.4.1", - "phpunit/php-code-coverage": "^14.3.3", + "phpunit/php-code-coverage": "^14.4.1", "phpunit/php-file-iterator": "^7.0.2", "phpunit/php-invoker": "^7.0.0", - "phpunit/php-text-template": "^6.0.0", + "phpunit/php-text-template": "^6.0.1", "phpunit/php-timer": "^9.0.0", "sebastian/cli-parser": "^5.0.1", "sebastian/comparator": "^8.4", "sebastian/diff": "^9.0.1", - "sebastian/environment": "^9.3.2", + "sebastian/environment": "^9.3.3", "sebastian/exporter": "^8.2.1", "sebastian/file-filter": "^1.0", - "sebastian/git-state": "^1.0", + "sebastian/git-state": "^1.1", "sebastian/global-state": "^9.0.1", "sebastian/object-enumerator": "^8.1.0", "sebastian/recursion-context": "^8.0.1", "sebastian/type": "^7.0.2", - "sebastian/version": "^7.0.0", + "sebastian/version": "^7.0.1", "staabm/side-effects-detector": "^1.0.5" }, "bin": [ @@ -10608,7 +10701,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "13.3-dev" + "dev-main": "13.4-dev" } }, "autoload": { @@ -10640,7 +10733,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/13.3.4" + "source": "https://github.com/sebastianbergmann/phpunit/tree/13.4.5" }, "funding": [ { @@ -10648,7 +10741,7 @@ "type": "other" } ], - "time": "2026-09-15T07:37:05+00:00" + "time": "2026-10-27T04:16:22+00:00" }, { "name": "sebastian/cli-parser", @@ -10962,23 +11055,23 @@ }, { "name": "sebastian/environment", - "version": "9.3.2", + "version": "9.3.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "6c9e487c9eb706a8d258102a1c0b0a3e53e86c2e" + "reference": "d4dd10267a11055066a2a78ae04583d8ddd4f595" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/6c9e487c9eb706a8d258102a1c0b0a3e53e86c2e", - "reference": "6c9e487c9eb706a8d258102a1c0b0a3e53e86c2e", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/d4dd10267a11055066a2a78ae04583d8ddd4f595", + "reference": "d4dd10267a11055066a2a78ae04583d8ddd4f595", "shasum": "" }, "require": { "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^13.1.11" + "phpunit/phpunit": "^13.3.6" }, "suggest": { "ext-posix": "*" @@ -11014,7 +11107,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", "security": "https://github.com/sebastianbergmann/environment/security/policy", - "source": "https://github.com/sebastianbergmann/environment/tree/9.3.2" + "source": "https://github.com/sebastianbergmann/environment/tree/9.3.3" }, "funding": [ { @@ -11034,7 +11127,7 @@ "type": "tidelift" } ], - "time": "2026-05-25T13:41:38+00:00" + "time": "2026-10-01T12:37:56+00:00" }, { "name": "sebastian/exporter", @@ -11197,28 +11290,28 @@ }, { "name": "sebastian/git-state", - "version": "1.0.0", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/git-state.git", - "reference": "792a952e0eba55b6960a48aeceb9f371aad1f76b" + "reference": "31a565f463686f0eefa85f899549256bf5805985" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/git-state/zipball/792a952e0eba55b6960a48aeceb9f371aad1f76b", - "reference": "792a952e0eba55b6960a48aeceb9f371aad1f76b", + "url": "https://api.github.com/repos/sebastianbergmann/git-state/zipball/31a565f463686f0eefa85f899549256bf5805985", + "reference": "31a565f463686f0eefa85f899549256bf5805985", "shasum": "" }, "require": { "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^13.0" + "phpunit/phpunit": "^13.4.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.0-dev" + "dev-main": "1.1-dev" } }, "autoload": { @@ -11242,7 +11335,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/git-state/issues", "security": "https://github.com/sebastianbergmann/git-state/security/policy", - "source": "https://github.com/sebastianbergmann/git-state/tree/1.0.0" + "source": "https://github.com/sebastianbergmann/git-state/tree/1.1.0" }, "funding": [ { @@ -11262,7 +11355,7 @@ "type": "tidelift" } ], - "time": "2026-03-21T12:54:28+00:00" + "time": "2026-10-21T05:59:52+00:00" }, { "name": "sebastian/global-state", @@ -11692,16 +11785,16 @@ }, { "name": "sebastian/version", - "version": "7.0.0", + "version": "7.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "ad37a5552c8e2b88572249fdc19b6da7792e021b" + "reference": "f1598cf1d8d1ca4c0f194a52f2fe72a559a7b0b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/ad37a5552c8e2b88572249fdc19b6da7792e021b", - "reference": "ad37a5552c8e2b88572249fdc19b6da7792e021b", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/f1598cf1d8d1ca4c0f194a52f2fe72a559a7b0b1", + "reference": "f1598cf1d8d1ca4c0f194a52f2fe72a559a7b0b1", "shasum": "" }, "require": { @@ -11734,7 +11827,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/version/issues", "security": "https://github.com/sebastianbergmann/version/security/policy", - "source": "https://github.com/sebastianbergmann/version/tree/7.0.0" + "source": "https://github.com/sebastianbergmann/version/tree/7.0.1" }, "funding": [ { @@ -11754,7 +11847,7 @@ "type": "tidelift" } ], - "time": "2026-02-06T04:52:52+00:00" + "time": "2026-10-04T05:51:14+00:00" }, { "name": "staabm/side-effects-detector", @@ -11810,16 +11903,16 @@ }, { "name": "symfony/yaml", - "version": "v8.1.6", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "0b4aa53a67f9fece88c665f1a1dadcfd25d93fe5" + "reference": "9de4ff9874dd18b738b9f248398c3e36ef15a1d2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/0b4aa53a67f9fece88c665f1a1dadcfd25d93fe5", - "reference": "0b4aa53a67f9fece88c665f1a1dadcfd25d93fe5", + "url": "https://api.github.com/repos/symfony/yaml/zipball/9de4ff9874dd18b738b9f248398c3e36ef15a1d2", + "reference": "9de4ff9874dd18b738b9f248398c3e36ef15a1d2", "shasum": "" }, "require": { @@ -11862,7 +11955,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v8.1.6" + "source": "https://github.com/symfony/yaml/tree/v8.1.10" }, "funding": [ { @@ -11882,7 +11975,7 @@ "type": "tidelift" } ], - "time": "2026-08-30T01:03:44+00:00" + "time": "2026-10-18T14:56:39+00:00" }, { "name": "ta-tikoma/phpunit-architecture-test", @@ -11942,56 +12035,6 @@ "source": "https://github.com/ta-tikoma/phpunit-architecture-test/tree/0.8.7" }, "time": "2026-02-17T17:25:14+00:00" - }, - { - "name": "theseer/tokenizer", - "version": "2.0.1", - "source": { - "type": "git", - "url": "https://github.com/theseer/tokenizer.git", - "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/7989e43bf381af0eac72e4f0ca5bcbfa81658be4", - "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": "^8.1" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - } - ], - "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "support": { - "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/2.0.1" - }, - "funding": [ - { - "url": "https://github.com/theseer", - "type": "github" - } - ], - "time": "2025-12-08T11:19:18+00:00" } ], "aliases": [], diff --git a/database/factories/OrganizationFactory.php b/database/factories/OrganizationFactory.php index 0b1a8c3..976abf5 100644 --- a/database/factories/OrganizationFactory.php +++ b/database/factories/OrganizationFactory.php @@ -3,6 +3,7 @@ namespace Database\Factories; use App\Models\Organization; +use App\Models\Plan; use App\Models\User; use App\OrganizationRole; use App\WorkspaceType; @@ -61,6 +62,20 @@ class OrganizationFactory extends Factory ]); } + /** + * Give the organization the plan with the given key. + */ + public function withPlan(string $key): static + { + return $this->afterCreating(function (Organization $organization) use ($key): void { + $planId = Plan::query()->where('key', $key)->value('id'); + + if ($planId !== null) { + $organization->forceFill(['plan_id' => $planId])->save(); + } + }); + } + /** * Add the given user to the organization with the given role. */ diff --git a/database/factories/PlanFactory.php b/database/factories/PlanFactory.php new file mode 100644 index 0000000..d06d963 --- /dev/null +++ b/database/factories/PlanFactory.php @@ -0,0 +1,64 @@ + + */ +class PlanFactory extends Factory +{ + /** + * Define the model's default state. + * + * A default plan is unlimited and not purchasable, matching the most + * permissive tier so tests can opt into limits explicitly. + * + * @return array + */ + public function definition(): array + { + return [ + 'key' => fake()->unique()->slug(2), + 'name' => fake()->words(2, true), + 'workspace_type' => WorkspaceType::Personal, + 'stripe_price' => null, + 'interval' => 'month', + 'amount' => 0, + 'seat_limit' => null, + 'max_folders' => null, + 'max_folder_depth' => null, + 'max_notes_per_folder' => null, + 'note_chars' => null, + 'sort_order' => 0, + 'is_active' => true, + ]; + } + + /** + * Indicate that the plan is sold through Stripe at the given price. + */ + public function purchasable(?string $price = null): static + { + return $this->state(fn (array $attributes) => [ + 'stripe_price' => $price ?? 'price_'.Str::random(12), + ]); + } + + /** + * Indicate that the plan caps the given limits. + */ + public function limited(int $maxFolders, int $maxFolderDepth, int $maxNotesPerFolder, int $noteChars): static + { + return $this->state(fn (array $attributes) => [ + 'max_folders' => $maxFolders, + 'max_folder_depth' => $maxFolderDepth, + 'max_notes_per_folder' => $maxNotesPerFolder, + 'note_chars' => $noteChars, + ]); + } +} diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 6312ff5..06799f1 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -2,6 +2,7 @@ namespace Database\Factories; +use App\Models\Plan; use App\Models\User; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Factories\Factory; @@ -29,6 +30,14 @@ class UserFactory extends Factory */ protected bool $subscribed = true; + /** + * The plan given to the user's personal organization. Following the plan + * of record, a factory user starts on the unlimited plan so tests are not + * constrained by folder or note limits. Call withPlan() or withFreePlan() + * to opt into a specific tier. + */ + protected ?string $planKey = 'unlimited'; + /** * Define the model's default state. * @@ -49,10 +58,10 @@ class UserFactory extends Factory } /** - * Create the model and, unless opted out, give it an active subscription on - * the personal organization the model's created hook just made. + * Create the model and give its personal organization a plan. Unless opted + * out, the model also gets an active subscription on that organization. * - * The flag is read here rather than in an afterCreating callback because + * The flags are read here rather than in an afterCreating callback because * afterCreating() hands back a new factory instance, so a closure registered * there would close over a copy that unsubscribed() never reaches. * @@ -63,13 +72,15 @@ class UserFactory extends Factory { $result = parent::create($attributes, $parent); - if (! $this->subscribed) { - return $result; - } - $users = $result instanceof SupportCollection ? $result : collect([$result]); - $users->each(fn (User $user) => $this->subscribe($user)); + $users->each(function (User $user): void { + if ($this->subscribed) { + $this->subscribe($user); + } + + $this->assignPlan($user, $this->planKey); + }); return $result; } @@ -85,6 +96,24 @@ class UserFactory extends Factory return $this; } + /** + * Give the user's personal organization the plan with the given key. + */ + public function withPlan(string $key): static + { + $this->planKey = $key; + + return $this; + } + + /** + * Give the user's personal organization the free plan. + */ + public function withFreePlan(): static + { + return $this->withPlan('free'); + } + /** * Indicate that the model's email address should be unverified. */ @@ -140,4 +169,28 @@ class UserFactory extends Factory Subscription::factory()->create(['organization_id' => $organization->id]); } + + /** + * Assign a plan to the user's current organization. + */ + protected function assignPlan(User $user, ?string $planKey): void + { + if ($planKey === null) { + return; + } + + $organization = $user->currentOrganization()->first(); + + if ($organization === null) { + return; + } + + $planId = Plan::query()->where('key', $planKey)->value('id'); + + if ($planId === null) { + return; + } + + $organization->forceFill(['plan_id' => $planId])->save(); + } } diff --git a/database/migrations/2026_10_16_043627_create_plans_table.php b/database/migrations/2026_10_16_043627_create_plans_table.php new file mode 100644 index 0000000..7142c3d --- /dev/null +++ b/database/migrations/2026_10_16_043627_create_plans_table.php @@ -0,0 +1,137 @@ +id(); + $table->string('key')->unique(); + $table->string('name'); + + // Which kind of workspace the plan provisions. Free and personal + // plans map to a single-user personal workspace, family to a shared + // family workspace, and organization to a shared organization. + $table->string('workspace_type')->default('personal'); + + // The Stripe price id the plan is sold against. Plans without one + // are not purchasable and are hidden from the pricing page. + $table->string('stripe_price')->nullable(); + $table->string('interval')->default('month'); + + // The advertised price, in minor units, so a bad edit cannot + // silently advertise a free plan. + $table->unsignedInteger('amount')->default(0); + + // Limits. A null limit means unlimited. + $table->unsignedInteger('seat_limit')->nullable(); + $table->unsignedInteger('max_folders')->nullable(); + $table->unsignedInteger('max_folder_depth')->nullable(); + $table->unsignedInteger('max_notes_per_folder')->nullable(); + $table->unsignedInteger('note_chars')->nullable(); + + $table->unsignedInteger('sort_order')->default(0); + $table->boolean('is_active')->default(true); + $table->timestamps(); + }); + + // The plans that ship with the application. The paid personal plan + // reuses the configured Pro price, so it stays in step with the Stripe + // product created in the dashboard. + $personalPrice = config('plans.plans.pro.price'); + $personalPrice = is_string($personalPrice) && $personalPrice !== '' ? $personalPrice : null; + + $plans = [ + [ + 'key' => 'free', + 'name' => 'Free', + 'workspace_type' => 'personal', + 'stripe_price' => null, + 'amount' => 0, + 'seat_limit' => 1, + 'max_folders' => 3, + 'max_folder_depth' => 1, + 'max_notes_per_folder' => 50, + 'note_chars' => 1000, + 'sort_order' => 0, + ], + [ + 'key' => 'personal', + 'name' => 'Personal', + 'workspace_type' => 'personal', + 'stripe_price' => $personalPrice, + 'amount' => 1000, + 'seat_limit' => 1, + 'max_folders' => null, + 'max_folder_depth' => null, + 'max_notes_per_folder' => null, + 'note_chars' => null, + 'sort_order' => 1, + ], + [ + 'key' => 'family', + 'name' => 'Family', + 'workspace_type' => 'family', + 'stripe_price' => null, + 'amount' => 2500, + 'seat_limit' => 6, + 'max_folders' => null, + 'max_folder_depth' => null, + 'max_notes_per_folder' => null, + 'note_chars' => null, + 'sort_order' => 2, + ], + [ + 'key' => 'organization', + 'name' => 'Organization', + 'workspace_type' => 'organization', + 'stripe_price' => null, + 'amount' => 9900, + 'seat_limit' => null, + 'max_folders' => null, + 'max_folder_depth' => null, + 'max_notes_per_folder' => null, + 'note_chars' => null, + 'sort_order' => 3, + ], + [ + 'key' => 'unlimited', + 'name' => 'Unlimited', + 'workspace_type' => 'personal', + 'stripe_price' => null, + 'amount' => 0, + 'seat_limit' => 1, + 'max_folders' => null, + 'max_folder_depth' => null, + 'max_notes_per_folder' => null, + 'note_chars' => null, + 'sort_order' => 4, + ], + ]; + + foreach ($plans as $plan) { + DB::table('plans')->insert($plan + [ + 'interval' => 'month', + 'is_active' => true, + 'created_at' => now(), + 'updated_at' => now(), + ]); + } + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('plans'); + } +}; diff --git a/database/migrations/2026_10_16_043628_add_plan_id_to_organizations_table.php b/database/migrations/2026_10_16_043628_add_plan_id_to_organizations_table.php new file mode 100644 index 0000000..d383923 --- /dev/null +++ b/database/migrations/2026_10_16_043628_add_plan_id_to_organizations_table.php @@ -0,0 +1,34 @@ +foreignId('plan_id') + ->nullable() + ->after('lifetime_access') + ->constrained() + ->nullOnDelete(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('organizations', function (Blueprint $table) { + $table->dropConstrainedForeignId('plan_id'); + }); + } +}; diff --git a/database/migrations/2026_10_16_043629_make_notes_limit_nullable_on_users_table.php b/database/migrations/2026_10_16_043629_make_notes_limit_nullable_on_users_table.php new file mode 100644 index 0000000..0553775 --- /dev/null +++ b/database/migrations/2026_10_16_043629_make_notes_limit_nullable_on_users_table.php @@ -0,0 +1,34 @@ +unsignedInteger('notes_limit')->nullable()->default(null)->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + DB::table('users')->whereNull('notes_limit')->update(['notes_limit' => 1000]); + + Schema::table('users', function (Blueprint $table) { + $table->unsignedInteger('notes_limit')->nullable(false)->default(1000)->change(); + }); + } +}; diff --git a/database/migrations/2026_10_16_043630_backfill_organization_plans.php b/database/migrations/2026_10_16_043630_backfill_organization_plans.php new file mode 100644 index 0000000..3339c0c --- /dev/null +++ b/database/migrations/2026_10_16_043630_backfill_organization_plans.php @@ -0,0 +1,72 @@ +planId('unlimited'); + $personal = $this->planId('personal'); + $free = $this->planId('free'); + + if ($unlimited === null || $personal === null || $free === null) { + return; + } + + DB::table('organizations') + ->where('lifetime_access', true) + ->whereNull('plan_id') + ->update(['plan_id' => $unlimited]); + + $proPrice = config('plans.plans.pro.price'); + + if (is_string($proPrice) && $proPrice !== '') { + $subscribed = DB::table('subscriptions') + ->where('stripe_price', $proPrice) + ->distinct() + ->pluck('organization_id'); + + DB::table('organizations') + ->whereNull('plan_id') + ->whereIn('id', $subscribed) + ->update(['plan_id' => $personal]); + } + + DB::table('organizations') + ->whereNull('plan_id') + ->update(['plan_id' => $free]); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + DB::table('organizations')->update(['plan_id' => null]); + } + + /** + * Get the id of the plan with the given key, if it exists. + */ + private function planId(string $key): ?int + { + $id = DB::table('plans')->where('key', $key)->value('id'); + + return $id === null ? null : (int) $id; + } +}; diff --git a/phases.md b/phases.md new file mode 100644 index 0000000..7dd710c --- /dev/null +++ b/phases.md @@ -0,0 +1,117 @@ +# Multi-User Access — Implementation Phases + +Plan of record for adding multi-user access (workspaces, folder sharing, invitations) +to mytodos. Tech: Laravel 13 / PHP 8.4 / MySQL / Livewire 4 SFC pages / Pest / Flux UI (free). + +**Status:** Phases 1–3 complete and green (303 tests, 714 assertions). Phase 4 pending. + +--- + +## Access model (settled decisions) + +- Roles: `admin > editor > marker > viewer` (additive). +- Effective folder role = max of: + - creator → admin, + - explicit `folder_user` share, + - inherited ancestor shares, + - workspace default: owner/admin → admin, member → viewer. +- Folder visibility: `private` / `workspace`. Defaults: personal → private, family/org → workspace. +- Explicit shares cascade down the subtree. A `private` folder drops out of inherited + workspace access (workspace-wide grants flow only through workspace-visibility folders). +- No deny semantics. +- Todos have no ACL — they inherit their folder's access and `organization_id`. + `todos.user_id` stays "created by". +- Page scope: folders in the user's active workspace (`users.current_organization_id`) the + user can access, plus folders explicitly shared with them from any workspace. + Workspace-membership folders in non-active workspaces are NOT shown on pages. +- `Folder::scopeVisibleTo(Builder, User|int $user, ?int $workspaceId = null)` and + `Todo::scopeVisibleTo(...)`. `null` workspaceId keeps broad behavior (model tests rely on it); + pages pass `activeWorkspaceId(): int`. +- `organization_id` is NOT NULL on `folders` and `todos`. + +--- + +## Phase 1 — Foundations āœ… + +- Migrations `2026_10_10_214840`–`214847`: workspaces (`organizations`), `organization_user` + pivot (role), `folder_user` pivot (role, invited_by), `invitations`, plus `organization_id` + on `folders`/`todos`, `current_organization_id` on `users`. +- Models: `Organization`, `Invitation`; relations on `User`, `Folder`, `Todo`. +- Enums: `OrganizationRole`, `FolderRole`, `FolderVisibility` (each with `label()`). +- Policies: `FolderPolicy` (`manageShares`), `OrganizationPolicy` (`manageMembers`), + `InvitationPolicy` (`create`/`delete`), `TodoPolicy` (auto-discovered). +- Model scopes/helpers: `Folder::scopeVisibleTo` / `treeForVisibleTo` / `flattenTree` / + creating hook; `Todo::scopeVisibleTo` / `nextPositionFor`. +- Factories: `OrganizationFactory` (`personal`/`family`/`withMember`), + `FolderFactory` (`inOrganization`/`sharedWithWorkspace`/`private`/`childOf`), + `InvitationFactory` (`forFolder`/`forOrganization`/`accepted`/`expired`), + `UserFactory` (`unsubscribed`). +- Seeders pass `organization_id` explicitly. + +## Phase 2 — Access scoping in pages āœ… + +- All three pages (folders, todo list, dashboard) use `visibleFolder` / `folderForAction` / + `activeWorkspaceId()` and authorize with `can()` / `@can`. +- Folder workspace label in the UI. +- Tests: `tests/Feature/SharedAccessPagesTest.php` plus model-level coverage. + +## Phase 3 — Sharing & invitations āœ… + +- `Invitation` model: `EXPIRY_DAYS = 14`; `booted()` creating hook (token `Str::random(64)`, + `expires_at = Carbon::now()->addDays(14)`); `scopePending`; `isForFolder`/`isForWorkspace`; + `folderRole`/`organizationRole`; `roleLabel`; `inviterName`/`inviteableName`; `accept(User)`. +- `Folder::invitations()` MorphMany; `treeForVisibleTo` adds `withCount('shares')` (`shares_count`). +- Mail: `InvitationMail` + `resources/views/mail/invitation.blade.php`. Sent synchronously + (`Mail::to($email)->send(...)`); mail default driver `log`, `QUEUE_CONNECTION=database`. + Invitations upserted on (`inviteable_type`, `inviteable_id`, `email`) with fresh token/expiry. +- Accept page `resources/views/pages/invitations/⚔accept.blade.php`, route + `invitations/{invitation:token}` name `invitations.accept` (auth-only). Seat-limit check; + redirects to `dashboard`. +- Folders page share modal (gated `manageShares`): visibility select (hidden + server-guarded + for personal workspaces), collaborator list with role select + remove, invite-by-email + + role, pending invitations + revoke. +- Members page `resources/views/pages/workspace/⚔members.blade.php`, route `members` name + `members` (subscribed). Seat usage, role change, remove (blocks self + owner; reassigns + removed user to a personal workspace), invite (seat-limit aware), revoke. +- Nav: "Members" item in `resources/views/layouts/app/sidebar.blade.php` and `header.blade.php`. +- Tests: `InvitationTest`, `InvitationAcceptPageTest`, `FolderSharingTest`, + `WorkspaceMembersTest` (helpers `familyWorkspaceFor`, `membersWorkspaceFor`). + +## Phase 4 — Workspace creation & switching + billing polish ā³ + +Planned, not started. Candidate work: + +- Workspace creation flow (create personal/family/organization workspace; ownership). +- Active-workspace switching UI (updates `users.current_organization_id`) in sidebar/header. +- Workspace settings (rename, members already on the members page). +- Billing polish: ensure plan/seat limits and upgrade prompts align with workspace type + (`config/workspaces.php` seat limits: personal=1, family=6, organization=null; + `config/plans.php`: `subscription_type='default'`, `trial_days=14`, plan `pro`). +- Additional migrations are allowed in Phase 4; Phases 1–3 migrations are frozen. + +--- + +## Verification + +- `php artisan test` → 303 passed, 714 assertions. +- `vendor/bin/pint --dirty --format agent` (Pint formats `.blade.php` too). +- `vendor/bin/phpstan analyse --memory-limit=1G` (Larastan, level 7). Note: the default + `composer types:check` crashes at the 128M memory limit — pass `--memory-limit=1G`. + 17 pre-existing errors remain in unrelated files (console seeders, `Todo`, legacy `Folder` + helpers, policies). All Phase 1–3 feature files are clean. + +## Conventions & gotchas + +- `#[Fillable]`/`#[Hidden]` attributes; `scopeXxx()` naming; enums with `label()`. +- Create files via `php artisan make:* --no-interaction`. +- Livewire `Component` base has no `AuthorizesRequests`; pages use + `abort_unless(auth()->user()->can(...), 403)`; blade uses `@can`. +- **Blaze compiler bug:** Blade directives as attributes on a Flux component tag + (`@selected()`/`@checked()` on ``) are mangled into a `ParseError`. + Use `wire:model` (array dot paths) instead. Native `` is fine. +- Livewire test harness renders `HttpException`/`AuthorizationException` into responses + (`assertStatus(403)`); `ModelNotFoundException` propagates. `#[Locked]` props can't be `set()`. +- Livewire `->set()` fires `updated` hooks (used with `memberRoles.{id}`, + `collaboratorRoles.{id}`). +- Guest invites: accept page behind `auth`; unsubscribed users bounce to pricing via + `subscribed`/`EnsureSubscribed`. diff --git a/resources/views/layouts/app/sidebar.blade.php b/resources/views/layouts/app/sidebar.blade.php index 56c4e3e..824061b 100644 --- a/resources/views/layouts/app/sidebar.blade.php +++ b/resources/views/layouts/app/sidebar.blade.php @@ -4,20 +4,24 @@ @include('partials.head') - - - + + + + - + {{ __('Dashboard') }} {{ __('Todos') }} + + {{ __('Kanban') }} + {{ __('Folders') }} @@ -27,13 +31,16 @@ @if (auth()->user()->isSiteAdmin()) - + {{ __('Notes limits') }} {{ __('Plan pricing') }} + + {{ __('Lifetime access') }} + @endif diff --git a/resources/views/pages/admin/⚔lifetime-access.blade.php b/resources/views/pages/admin/⚔lifetime-access.blade.php new file mode 100644 index 0000000..607a202 --- /dev/null +++ b/resources/views/pages/admin/⚔lifetime-access.blade.php @@ -0,0 +1,152 @@ +resetPage(); + } + + /** + * Get the users whose lifetime access status can be toggled, eager-loading + * their current organization so we can show and flip its lifetime access + * flag without extra queries. + * + * @return LengthAwarePaginator + */ + #[Computed] + public function users(): LengthAwarePaginator + { + return $this->filteredUserQuery() + ->with('currentOrganization') + ->orderBy('name') + ->paginate(self::PER_PAGE); + } + + /** + * @return Builder + */ + private function filteredUserQuery(): Builder + { + return User::query() + ->when( + $this->search !== '', + fn (Builder $query) => $query->where(fn (Builder $query) => $query + ->where('name', 'like', '%'.$this->search.'%') + ->orWhere('email', 'like', '%'.$this->search.'%')) + ); + } + + /** + * Flip the lifetime access flag on the given user's current organization. + * Every user has a personal organization, so this is the organization that + * controls whether they can use the app without a subscription. + */ + public function toggleLifetimeAccess(int $userId): void + { + Gate::authorize('accessAdmin'); + + $user = User::query()->findOrFail($userId); + $organization = $user->currentOrganization; + + if ($organization === null) { + Flux::toast(variant: 'danger', text: __('This user has no organization.')); + + return; + } + + $organization->update(['lifetime_access' => ! $organization->lifetime_access]); + + Flux::toast( + variant: 'success', + text: $organization->lifetime_access + ? __('Lifetime access enabled for :name.', ['name' => $user->name]) + : __('Lifetime access disabled for :name.', ['name' => $user->name]), + ); + } +}; ?> + +
+
+ {{ __('Lifetime access') }} + {{ __('Grant or revoke perpetual access so users can use the app without a subscription.') }} +
+ + + + + + + {{ __('Name') }} + {{ __('Email') }} + {{ __('Lifetime access') }} + {{ __('Actions') }} + + + + @forelse ($this->users as $user) + currentOrganization; + $hasLifetime = $organization?->lifetime_access === true; + ?> + + {{ $user->name }} + {{ $user->email }} + + @if ($hasLifetime) + {{ __('Lifetime') }} + @else + {{ __('None') }} + @endif + + + + + + @empty + + + {{ __('No users match your search.') }} + + + @endforelse + + + +
diff --git a/resources/views/pages/⚔dashboard.blade.php b/resources/views/pages/⚔dashboard.blade.php index 583235a..2235f18 100644 --- a/resources/views/pages/⚔dashboard.blade.php +++ b/resources/views/pages/⚔dashboard.blade.php @@ -1,5 +1,6 @@ resetPage(); } + protected function sortChanged(): void + { + $this->resetPage(); + } + public function openCreateForm(?int $folderId = null): void { $this->reset('editingTodoId', 'description', 'todoStatus', 'dueDate', 'notes', 'formFolderId'); @@ -259,10 +266,9 @@ new #[Title('Dashboard')] class extends Component #[Computed] public function todos(): LengthAwarePaginator { - return $this->filteredTodoQuery() - ->with('folder.parent') - ->priority() - ->paginate(self::PER_PAGE); + return $this->applyTodoSort( + $this->filteredTodoQuery()->with('folder.parent') + )->paginate(self::PER_PAGE); } #[Computed] @@ -273,6 +279,10 @@ new #[Title('Dashboard')] class extends Component public function moveTodo(int $todoId, string $direction): void { + if ($this->hasActiveSort()) { + return; + } + $this->todoForAction($todoId, 'update'); $ids = $this->orderedTodoIds; @@ -293,6 +303,10 @@ new #[Title('Dashboard')] class extends Component public function handleSort(int $todoId, int $position): void { + if ($this->hasActiveSort()) { + return; + } + $this->todoForAction($todoId, 'update'); $offset = ($this->todos->currentPage() - 1) * self::PER_PAGE; @@ -518,12 +532,12 @@ new #[Title('Dashboard')] class extends Component {{ __('Done') }} - {{ __('Description') }} - {{ __('Status') }} - {{ __('Folder') }} - {{ __('Due') }} - {{ __('Created') }} - {{ __('Completed') }} + {{ __('Description') }} + {{ __('Status') }} + {{ __('Folder') }} + {{ __('Due') }} + {{ __('Created') }} + {{ __('Completed') }} {{ __('Actions') }} @@ -532,7 +546,7 @@ new #[Title('Dashboard')] class extends Component @can('update', $todo) -
+
@endcan @@ -607,26 +621,28 @@ new #[Title('Dashboard')] class extends Component
@can('update', $todo) - @if ($todo->id !== ($this->orderedTodoIds[0] ?? null)) - - @endif + @if ($sortBy === null) + @if ($todo->id !== ($this->orderedTodoIds[0] ?? null)) + + @endif - @if ($todo->id !== ($this->orderedTodoIds[array_key_last($this->orderedTodoIds)] ?? null)) - + @if ($todo->id !== ($this->orderedTodoIds[array_key_last($this->orderedTodoIds)] ?? null)) + + @endif @endif query('folder'); + + if ($folderId === null || $folderId === '') { + return; + } + + $folderId = (int) $folderId; + + if (Folder::query()->visibleTo(auth()->id(), $this->activeWorkspaceId())->whereKey($folderId)->exists()) { + $this->folderId = $folderId; + } + } + + public function updatedSearch(): void + { + unset($this->columns); + } + + public function updatedFolderId(): void + { + $this->folderId = $this->folderId === null || $this->folderId === '' ? null : (int) $this->folderId; + + unset($this->columns, $this->filterFolderScope); + } + + public function openCreateForm(?string $status = null): void + { + $this->reset('editingTodoId', 'description', 'todoStatus', 'dueDate', 'notes', 'formFolderId'); + $this->resetErrorBag(); + + if ($status !== null && TodoStatus::tryFrom($status) !== null) { + $this->todoStatus = $status; + } + + if ($this->folderId !== null) { + $node = $this->folderTree->first(fn (array $node): bool => $node['folder']->id === $this->folderId); + + if ($node !== null && auth()->user()->can('create', [Todo::class, $node['folder']])) { + $this->formFolderId = $this->folderId; + } + } + + $this->showTodoForm = true; + } + + public function openEditForm(int $todoId): void + { + $todo = $this->todoForAction($todoId, 'update'); + + $this->editingTodoId = $todo->id; + $this->description = $todo->description; + $this->todoStatus = $todo->status->value; + $this->dueDate = $todo->due_date?->format('Y-m-d') ?? ''; + $this->notes = $todo->notes ?? ''; + $this->formFolderId = $todo->folder_id; + + $this->resetErrorBag(); + $this->showTodoForm = true; + } + + public function saveTodo(): void + { + $validated = $this->validate([ + 'description' => ['required', 'string', 'max:255'], + 'todoStatus' => ['required', Rule::enum(TodoStatus::class)], + 'dueDate' => ['nullable', 'date'], + 'notes' => ['nullable', 'string', 'max:'.auth()->user()->notesLimit()], + 'formFolderId' => ['required', 'integer', Rule::exists('folders', 'id')->whereIn( + 'id', + Folder::query()->visibleTo(auth()->id(), $this->activeWorkspaceId())->select('folders.id') + )], + ]); + + $folder = Folder::query() + ->visibleTo(auth()->id(), $this->activeWorkspaceId()) + ->findOrFail($validated['formFolderId']); + + abort_unless(auth()->user()->can('create', [Todo::class, $folder]), 403); + + $data = [ + 'folder_id' => $folder->id, + 'description' => $validated['description'], + 'status' => TodoStatus::from($validated['todoStatus']), + 'due_date' => filled($validated['dueDate']) ? Carbon::parse($validated['dueDate']) : null, + 'notes' => filled($validated['notes']) ? $validated['notes'] : null, + ]; + + if ($this->editingTodoId !== null) { + $this->todoForAction($this->editingTodoId, 'update')->update($data); + } else { + Todo::create($data + [ + 'user_id' => auth()->id(), + 'position' => Todo::nextPositionFor($folder), + ]); + } + + $this->reset('showTodoForm', 'editingTodoId', 'description', 'todoStatus', 'dueDate', 'notes', 'formFolderId'); + + unset($this->columns); + } + + public function toggleComplete(int $todoId): void + { + $todo = $this->todoForAction($todoId, 'markComplete'); + + $data = ['completed_at' => $todo->completed_at === null ? now() : null]; + + if ($todo->completed_at === null && in_array($todo->status, [TodoStatus::Open, TodoStatus::InProgress], true)) { + $data['status'] = TodoStatus::Completed; + } elseif ($todo->completed_at !== null && $todo->status === TodoStatus::Completed) { + $data['status'] = TodoStatus::Open; + } + + $todo->update($data); + + unset($this->columns); + } + + public function confirmTodoDelete(int $todoId): void + { + $this->todoForAction($todoId, 'delete'); + + $this->confirmingTodoDelete = $todoId; + $this->modal('confirm-todo-delete')->show(); + } + + public function deleteTodo(): void + { + $this->todoForAction($this->confirmingTodoDelete ?? 0, 'delete')->delete(); + + $this->confirmingTodoDelete = null; + $this->modal('confirm-todo-delete')->close(); + + unset($this->columns); + } + + public function resetFilters(): void + { + $this->reset('search', 'folderId'); + + unset($this->columns, $this->filterFolderScope); + } + + public function moveTodo(int $todoId, int $position, string $columnId): void + { + if ($columnId !== 'completed' && TodoStatus::tryFrom($columnId) === null) { + return; + } + + $todo = $this->todoForAction($todoId, 'update'); + + if ($columnId === 'completed') { + $data = ['completed_at' => $todo->completed_at ?? now()]; + + if ($todo->completed_at === null && in_array($todo->status, [TodoStatus::Open, TodoStatus::InProgress], true)) { + $data['status'] = TodoStatus::Completed; + } + + $todo->update($data); + } else { + $todo->update([ + 'status' => TodoStatus::from($columnId), + 'completed_at' => null, + ]); + } + + $this->reorderColumn($todo->id, $position, $columnId); + } + + /** + * Move a todo to the given index of a board column. The reordered todos are + * written back into the slots they already occupy in the user's full + * priority order, so reordering under an active filter permutes the visible + * todos without renumbering them from zero and colliding with the todos the + * filter hides. + */ + private function reorderColumn(int $todoId, int $newIndex, string $columnId): void + { + $visibleIds = $this->columnTodoIds($columnId); + $currentIndex = array_search($todoId, $visibleIds, true); + + if ($currentIndex === false) { + return; + } + + $newIndex = max(0, min($newIndex, count($visibleIds) - 1)); + + if ($newIndex === $currentIndex) { + unset($this->columns); + + return; + } + + $visibleOrder = $visibleIds; + unset($visibleOrder[$currentIndex]); + array_splice($visibleOrder, $newIndex, 0, $todoId); + + $ids = Todo::query()->visibleTo(auth()->id(), $this->activeWorkspaceId())->priority()->pluck('id')->all(); + + $slots = array_keys(array_intersect($ids, $visibleIds)); + + foreach ($slots as $visibleSlot => $slot) { + $ids[$slot] = $visibleOrder[$visibleSlot]; + } + + foreach ($ids as $position => $id) { + Todo::query()->visibleTo(auth()->id(), $this->activeWorkspaceId())->whereKey($id)->update(['position' => $position]); + } + + unset($this->columns); + } + + /** + * @return list + */ + private function columnTodoIds(string $columnId): array + { + $query = $this->filteredTodoQuery()->priority(); + + if ($columnId === 'completed') { + $query->where(function (Builder $query): void { + $query->whereNotNull('completed_at')->orWhere('status', TodoStatus::Completed->value); + }); + } else { + $query->where('status', $columnId)->whereNull('completed_at'); + } + + return $query->pluck('id')->all(); + } + + /** + * @return Builder + */ + private function filteredTodoQuery(): Builder + { + return Todo::query() + ->visibleTo(auth()->id(), $this->activeWorkspaceId()) + ->when( + $this->search !== '', + fn (Builder $query) => $query->where('description', 'like', '%'.$this->search.'%') + ) + ->when( + $this->folderId !== null, + fn (Builder $query) => $query->whereIn('folder_id', $this->filterFolderScope) + ); + } + + private function descendantIds(int $folderId): array + { + $ids = [$folderId]; + + foreach ($this->folderTree->where('folder.parent_id', $folderId)->values() as $child) { + $ids = [...$ids, ...$this->descendantIds($child['folder']->id)]; + } + + return $ids; + } + + private function todoForAction(int $todoId, string $ability): Todo + { + $todo = Todo::query() + ->visibleTo(auth()->id(), $this->activeWorkspaceId()) + ->with('folder') + ->findOrFail($todoId); + + abort_unless(auth()->user()->can($ability, $todo), 403); + + return $todo; + } + + private function activeWorkspaceId(): int + { + return (int) auth()->user()->current_organization_id; + } + + #[Computed] + public function folderTree(): Collection + { + return Folder::treeForVisibleTo(auth()->id(), $this->activeWorkspaceId()); + } + + #[Computed] + public function filterFolderScope(): array + { + if ($this->folderId === null) { + return []; + } + + return $this->descendantIds($this->folderId); + } + + #[Computed] + public function hasActiveFilters(): bool + { + return $this->search !== '' || $this->folderId !== null; + } + + #[Computed] + public function canCreateTodos(): bool + { + return $this->folderTree->contains( + fn (array $node): bool => auth()->user()->can('create', [Todo::class, $node['folder']]) + ); + } + + /** + * @return list}> + */ + #[Computed] + public function columns(): array + { + $todos = $this->filteredTodoQuery() + ->with('folder.parent') + ->priority() + ->get(); + + $columns = collect([ + TodoStatus::Open, + TodoStatus::InProgress, + TodoStatus::OnHold, + TodoStatus::Blocked, + TodoStatus::Cancelled, + TodoStatus::Deferred, + ])->map(fn (TodoStatus $status): array => [ + 'id' => $status->value, + 'label' => $status->label(), + 'color' => $status->badgeColor(), + 'todos' => $todos + ->filter(fn (Todo $todo): bool => $todo->status === $status && $todo->completed_at === null) + ->values(), + ]); + + $columns->push([ + 'id' => 'completed', + 'label' => TodoStatus::Completed->label(), + 'color' => TodoStatus::Completed->badgeColor(), + 'todos' => $todos + ->filter(fn (Todo $todo): bool => $todo->completed_at !== null || $todo->status === TodoStatus::Completed) + ->values(), + ]); + + return $columns->all(); + } +}; ?> + +
+
+
+ {{ __('Kanban') }} + {{ __('Drag todos between columns to update their status.') }} +
+ +
+ + {{ __('List view') }} + + + @if ($this->canCreateTodos) + + {{ __('New Todo') }} + + @endif +
+
+ + @if (! $this->canCreateTodos) + + + {{ __('Create a folder you can add todos to before using the board.') }} + + + + {{ __('Manage folders') }} + + + + @endif + +
+ + + + {{ __('All folders') }} + @foreach ($this->folderTree as $node) + {{ str_repeat('— ', $node['depth']) }}{{ $node['folder']->name }} + @endforeach + + + @if ($this->hasActiveFilters) + + {{ __('Clear') }} + + @endif +
+ +
+ @foreach ($this->columns as $column) +
+
+
+ {{ $column['label'] }} + + {{ $column['todos']->count() }} + +
+ + @if ($this->canCreateTodos) + + @endif +
+ +
+ @forelse ($column['todos'] as $todo) + @php + $canUpdateTodo = auth()->user()->can('update', $todo); + + $dueColor = $todo->completed_at !== null + ? 'zinc' + : ($todo->due_date?->isPast() ? 'red' : ($todo->due_date?->isToday() ? 'amber' : 'zinc')); + @endphp + +
$todo->completed_at !== null, + ]) + > +
+
+

$todo->completed_at !== null, + ])> + {{ $todo->description }} +

+ + @if ($todo->notes) + {{ $todo->notes }} + @endif +
+ + @if ($canUpdateTodo) +
+ + + + + {{ __('Edit') }} + + + {{ __('Delete') }} + + + +
+ @endif +
+ +
+ @can('markComplete', $todo) +
+ +
+ @endcan + +
+ + {{ $todo->folder?->parent?->name }}@if ($todo->folder?->parent) / @endif{{ $todo->folder?->name }} +
+ + @if ($column['id'] === 'completed' && $todo->status !== TodoStatus::Completed) + + {{ $todo->status->label() }} + + @endif + + @if ($todo->due_date) + + {{ $todo->due_date->isToday() ? __('Today') : $todo->due_date->format('M j') }} + + @endif +
+
+ @empty +
+ {{ __('No todos') }} +
+ @endforelse +
+
+ @endforeach +
+ + +
+
+ {{ $editingTodoId === null ? __('New todo') : __('Edit todo') }} + {{ __('Add a task with a description and folder. A due date is optional.') }} +
+ + + {{ __('Description') }} + + + + + + {{ __('Status') }} + + @foreach (TodoStatus::cases() as $status) + {{ $status->label() }} + @endforeach + + + + + + {{ __('Due date') }} + + + + + + {{ __('Notes') }} + + + + + + {{ __('Folder') }} + + {{ __('Select a folder…') }} + @foreach ($this->folderTree as $node) + {{ str_repeat('— ', $node['depth']) }}{{ $node['folder']->name }} + @endforeach + + + + +
+ + {{ __('Cancel') }} + + {{ __('Save todo') }} +
+
+
+ + +
+
+ {{ __('Delete todo?') }} + {{ __('This todo will be permanently deleted. This action cannot be undone.') }} +
+
+ + {{ __('Cancel') }} + + {{ __('Delete') }} +
+
+
+
diff --git a/resources/views/pages/⚔todos.blade.php b/resources/views/pages/⚔todos.blade.php index ce690b0..4d1781c 100644 --- a/resources/views/pages/⚔todos.blade.php +++ b/resources/views/pages/⚔todos.blade.php @@ -1,5 +1,6 @@ limit = self::PER_PAGE; } + protected function sortChanged(): void + { + $this->limit = self::PER_PAGE; + } + public function openCreateForm(?int $folderId = null): void { $this->reset('editingTodoId', 'description', 'todoStatus', 'dueDate', 'notes', 'formFolderId'); @@ -243,15 +251,19 @@ new #[Title('Todos')] class extends Component #[Computed] public function todos(): Collection { - return $this->filteredTodoQuery() - ->with('folder.parent') - ->priority() + return $this->applyTodoSort( + $this->filteredTodoQuery()->with('folder.parent') + ) ->limit($this->limit) ->get(); } public function moveTodo(int $todoId, string $direction): void { + if ($this->hasActiveSort()) { + return; + } + $this->todoForAction($todoId, 'update'); $ids = $this->orderedTodoIds; @@ -272,6 +284,10 @@ new #[Title('Todos')] class extends Component public function handleSort(int $todoId, int $position): void { + if ($this->hasActiveSort()) { + return; + } + $this->todoForAction($todoId, 'update'); $this->reorderTodo($todoId, $position); @@ -380,13 +396,19 @@ new #[Title('Todos')] class extends Component Browse and reorder every todo.
- - {{ __('New Todo') }} - +
+ + {{ __('Board view') }} + + + + {{ __('New Todo') }} + +
@@ -432,12 +454,12 @@ new #[Title('Todos')] class extends Component {{ __('Done') }} - {{ __('Description') }} - {{ __('Status') }} - {{ __('Folder') }} - {{ __('Due') }} - {{ __('Created') }} - {{ __('Completed') }} + {{ __('Description') }} + {{ __('Status') }} + {{ __('Folder') }} + {{ __('Due') }} + {{ __('Created') }} + {{ __('Completed') }} {{ __('Actions') }} @@ -446,7 +468,7 @@ new #[Title('Todos')] class extends Component @can('update', $todo) -
+
@endcan @@ -517,26 +539,28 @@ new #[Title('Todos')] class extends Component
@can('update', $todo) - @if ($todo->id !== ($this->orderedTodoIds[0] ?? null)) - - @endif + @if ($sortBy === null) + @if ($todo->id !== ($this->orderedTodoIds[0] ?? null)) + + @endif - @if ($todo->id !== ($this->orderedTodoIds[array_key_last($this->orderedTodoIds)] ?? null)) - + @if ($todo->id !== ($this->orderedTodoIds[array_key_last($this->orderedTodoIds)] ?? null)) + + @endif @endif group(function () { Route::middleware(['auth', 'verified', 'subscribed'])->group(function () { Route::livewire('dashboard', 'pages::dashboard')->name('dashboard'); Route::livewire('todos', 'pages::todos')->name('todos'); + Route::livewire('kanban', 'pages::kanban')->name('kanban'); Route::livewire('folders', 'pages::folders')->name('folders'); Route::livewire('members', 'pages::workspace.members')->name('members'); @@ -27,6 +28,7 @@ Route::middleware(['auth', 'verified', 'subscribed'])->group(function () { Route::middleware('admin')->group(function () { Route::livewire('admin/notes-limits', 'pages::admin.notes-limits')->name('admin.notes-limits'); Route::livewire('admin/plan-pricing', 'pages::admin.plan-pricing')->name('admin.plan-pricing'); + Route::livewire('admin/lifetime-access', 'pages::admin.lifetime-access')->name('admin.lifetime-access'); }); }); diff --git a/tests/Feature/AdminLifetimeAccessTest.php b/tests/Feature/AdminLifetimeAccessTest.php new file mode 100644 index 0000000..12a6399 --- /dev/null +++ b/tests/Feature/AdminLifetimeAccessTest.php @@ -0,0 +1,158 @@ +get(route('admin.lifetime-access')) + ->assertRedirect(route('login')); +}); + +test('non-admins cannot access the lifetime access page', function () { + $this->actingAs(User::factory()->create()); + + $this->get(route('admin.lifetime-access'))->assertForbidden(); +}); + +test('workspace admins are not site admins and cannot access the lifetime access page', function () { + $workspaceAdmin = User::factory()->create(); + + $this->actingAs($workspaceAdmin); + + $this->get(route('admin.lifetime-access'))->assertForbidden(); +}); + +test('a non-admin cannot toggle lifetime access through a direct action call', function () { + $admin = User::factory()->asAdmin()->create(); + $this->actingAs($admin); + + $member = User::factory()->create(); + + $component = Livewire::test('pages::admin.lifetime-access'); + + $this->actingAs($member); + + $component->call('toggleLifetimeAccess', $member->id)->assertForbidden(); + + expect($member->fresh()->currentOrganization->lifetime_access)->toBeFalse(); +}); + +test('non-admins do not see the lifetime access navigation item', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $this->get(route('dashboard')) + ->assertOk() + ->assertDontSee('Lifetime access'); +}); + +test('admins see the lifetime access navigation item', function () { + $user = User::factory()->asAdmin()->create(); + $this->actingAs($user); + + $this->get(route('dashboard')) + ->assertOk() + ->assertSee('Lifetime access'); +}); + +test('site admins see the site admin navigation group', function () { + $user = User::factory()->asAdmin()->create(); + $this->actingAs($user); + + $this->get(route('dashboard')) + ->assertOk() + ->assertSee('Site admin'); +}); + +test('workspace admins do not see the site admin navigation group', function () { + $workspaceAdmin = User::factory()->create(); + + $this->actingAs($workspaceAdmin); + + $this->get(route('dashboard')) + ->assertOk() + ->assertDontSee('Site admin'); +}); + +test('admins can view the lifetime access page', function () { + $user = User::factory()->asAdmin()->create(); + $this->actingAs($user); + + $this->get(route('admin.lifetime-access'))->assertOk(); +}); + +test('the lifetime access page lists users with their status', function () { + $admin = User::factory()->asAdmin()->create(); + $this->actingAs($admin); + + $lifetimeUser = User::factory()->create(['name' => 'Lifetime User']); + $lifetimeUser->currentOrganization->update(['lifetime_access' => true]); + + $regularUser = User::factory()->create(['name' => 'Regular User']); + + Livewire::test('pages::admin.lifetime-access') + ->assertSee('Lifetime User') + ->assertSee('Regular User') + ->assertSee('Lifetime') + ->assertSee('None'); +}); + +test('admins can enable lifetime access for a user', function () { + $admin = User::factory()->asAdmin()->create(); + $this->actingAs($admin); + + $member = User::factory()->create(['name' => 'Member One']); + + expect($member->fresh()->currentOrganization->lifetime_access)->toBeFalse(); + + Livewire::test('pages::admin.lifetime-access') + ->call('toggleLifetimeAccess', $member->id) + ->assertSet('showLimitForm', false); + + expect($member->fresh()->currentOrganization->lifetime_access)->toBeTrue(); +}); + +test('admins can disable lifetime access for a user', function () { + $admin = User::factory()->asAdmin()->create(); + $this->actingAs($admin); + + $member = User::factory()->create(['name' => 'Member Two']); + $member->currentOrganization->update(['lifetime_access' => true]); + + expect($member->fresh()->currentOrganization->lifetime_access)->toBeTrue(); + + Livewire::test('pages::admin.lifetime-access') + ->call('toggleLifetimeAccess', $member->id); + + expect($member->fresh()->currentOrganization->lifetime_access)->toBeFalse(); +}); + +test('admins can search users by name or email', function () { + $admin = User::factory()->asAdmin()->create(); + $this->actingAs($admin); + + $match = User::factory()->create(['name' => 'Ada Lovelace', 'email' => 'ada@example.com']); + $emailMatch = User::factory()->create(['name' => 'Grace Hopper', 'email' => 'grace@searchable.test']); + $other = User::factory()->create(['name' => 'Alan Turing', 'email' => 'alan@example.com']); + + Livewire::test('pages::admin.lifetime-access') + ->set('search', 'lovelace') + ->assertSee('Ada Lovelace') + ->assertDontSee('Alan Turing') + ->set('search', 'searchable.test') + ->assertSee('Grace Hopper') + ->assertDontSee($match->name) + ->assertDontSee($other->name); +}); + +test('the lifetime access list is paginated', function () { + $admin = User::factory()->asAdmin()->create(); + $this->actingAs($admin); + + User::factory()->count(12)->create(); + + $component = Livewire::test('pages::admin.lifetime-access'); + + expect($component->instance()->users->perPage())->toBe(10) + ->and($component->instance()->users->total())->toBe(13); +}); diff --git a/tests/Feature/AdminNotesLimitsTest.php b/tests/Feature/AdminNotesLimitsTest.php index d56b6d9..52ed7c9 100644 --- a/tests/Feature/AdminNotesLimitsTest.php +++ b/tests/Feature/AdminNotesLimitsTest.php @@ -42,7 +42,7 @@ test('a non-admin cannot save a notes limit through a direct action call', funct $component->set('notesLimitInput', '2500')->call('saveNotesLimit')->assertForbidden(); - expect($member->fresh()->notes_limit)->toBe(1000); + expect($member->fresh()->notesLimit())->toBe(1000); }); test('non-admins do not see the notes limits navigation item', function () { @@ -128,7 +128,7 @@ test('a notes limit must be a valid positive number', function () { ->call('saveNotesLimit') ->assertHasErrors('notesLimitInput'); - expect($member->fresh()->notes_limit)->toBe(1000); + expect($member->fresh()->notesLimit())->toBe(1000); }); test('admins can search users by name or email', function () { diff --git a/tests/Feature/BaseDataSeederTest.php b/tests/Feature/BaseDataSeederTest.php index f5f431c..24030cc 100644 --- a/tests/Feature/BaseDataSeederTest.php +++ b/tests/Feature/BaseDataSeederTest.php @@ -12,7 +12,8 @@ test('base data includes a default admin user', function () { expect($admin)->not->toBeNull() ->and($admin->name)->toBe('Administrator') - ->and($admin->notes_limit)->toBe(1000); + ->and($admin->notes_limit)->toBeNull() + ->and($admin->notesLimit())->toBe(1000); $this->assertTrue($admin->isSiteAdmin()); }); diff --git a/tests/Feature/Billing/PlanTest.php b/tests/Feature/Billing/PlanTest.php new file mode 100644 index 0000000..ae4d70e --- /dev/null +++ b/tests/Feature/Billing/PlanTest.php @@ -0,0 +1,87 @@ +orderBy('sort_order')->pluck('key')->all()) + ->toBe(['free', 'personal', 'family', 'organization', 'unlimited']); +}); + +test('a plan casts its workspace type and limits', function () { + $free = Plan::query()->where('key', 'free')->firstOrFail(); + + expect($free->workspace_type)->toBe(WorkspaceType::Personal) + ->and($free->is_active)->toBeTrue() + ->and($free->seat_limit)->toBe(1) + ->and($free->max_folders)->toBe(3) + ->and($free->max_folder_depth)->toBe(1) + ->and($free->max_notes_per_folder)->toBe(50) + ->and($free->note_chars)->toBe(1000); +}); + +test('the unlimited plan has no limits', function () { + $unlimited = Plan::query()->where('key', 'unlimited')->firstOrFail(); + + expect($unlimited->max_folders)->toBeNull() + ->and($unlimited->max_folder_depth)->toBeNull() + ->and($unlimited->max_notes_per_folder)->toBeNull() + ->and($unlimited->note_chars)->toBeNull(); +}); + +test('only the personal plan is purchasable by default', function () { + expect(Plan::query()->where('key', 'personal')->firstOrFail()->isPurchasable())->toBeTrue() + ->and(Plan::query()->where('key', 'free')->firstOrFail()->isPurchasable())->toBeFalse() + ->and(Plan::query()->where('key', 'unlimited')->firstOrFail()->isPurchasable())->toBeFalse(); +}); + +test('a plan created through the factory can be given caps and a price', function () { + $plan = Plan::factory()->limited(2, 1, 10, 200)->purchasable('price_abc')->create(); + + expect($plan->max_folders)->toBe(2) + ->and($plan->note_chars)->toBe(200) + ->and($plan->isPurchasable())->toBeTrue() + ->and($plan->stripe_price)->toBe('price_abc'); +}); + +test('an organization belongs to a plan', function () { + $organization = Organization::factory()->withPlan('family')->create(); + + expect($organization->plan)->not->toBeNull() + ->and($organization->plan->key)->toBe('family'); +}); + +test('the factory user is given the unlimited plan', function () { + $user = User::factory()->create(); + + expect($user->currentOrganization()->first()->plan->key)->toBe('unlimited'); +}); + +test('the factory user can be given a specific plan', function () { + $user = User::factory()->unsubscribed()->withFreePlan()->create(); + + expect($user->currentOrganization()->first()->plan->key)->toBe('free'); +}); + +test('the backfill assigns a plan to every existing workspace', function () { + $legacy = Organization::factory()->personal()->withLifetimeAccess()->create(); + $subscriber = Organization::factory()->personal()->create(); + $plain = Organization::factory()->personal()->create(); + + Subscription::factory()->active() + ->withPrice(config('plans.plans.pro.price')) + ->create(['organization_id' => $subscriber->id]); + + // Simulate a database that predates the backfill. + Organization::query()->update(['plan_id' => null]); + + $migration = require database_path('migrations/2026_10_16_043630_backfill_organization_plans.php'); + $migration->up(); + + expect($legacy->refresh()->plan->key)->toBe('unlimited') + ->and($subscriber->refresh()->plan->key)->toBe('personal') + ->and($plain->refresh()->plan->key)->toBe('free'); +}); diff --git a/tests/Feature/DashboardTest.php b/tests/Feature/DashboardTest.php index 6f33822..544c1aa 100644 --- a/tests/Feature/DashboardTest.php +++ b/tests/Feature/DashboardTest.php @@ -670,3 +670,37 @@ test('completed todos sort last regardless of their position', function () { Livewire::test('pages::dashboard') ->assertSeeInOrder(['Pending task', 'Finished task']); }); + +test('dashboard todos can be sorted by a column', function () { + $this->travelTo('2026-09-18 09:00:00'); + + $user = User::factory()->create(); + $this->actingAs($user); + + $folder = Folder::factory()->for($user)->create(['name' => 'Work']); + + Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'Later task', + 'due_date' => today()->addDays(2), + 'position' => 0, + ]); + Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'Sooner task', + 'due_date' => today()->addDay(), + 'position' => 1, + ]); + Todo::factory()->recycle($user)->for($folder)->noDueDate()->create([ + 'description' => 'No due task', + 'position' => 2, + ]); + + Livewire::test('pages::dashboard') + ->assertSeeInOrder(['Later task', 'Sooner task', 'No due task']) + ->call('sort', 'due_date') + ->assertSet('sortBy', 'due_date') + ->assertSet('sortDirection', 'asc') + ->assertSeeInOrder(['Sooner task', 'Later task', 'No due task']) + ->call('sort', 'due_date') + ->assertSet('sortDirection', 'desc') + ->assertSeeInOrder(['Later task', 'Sooner task', 'No due task']); +}); diff --git a/tests/Feature/KanbanTest.php b/tests/Feature/KanbanTest.php new file mode 100644 index 0000000..7b91401 --- /dev/null +++ b/tests/Feature/KanbanTest.php @@ -0,0 +1,309 @@ +get(route('kanban')); + + $response->assertRedirect(route('login')); +}); + +test('authenticated users can visit the kanban page', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $response = $this->get(route('kanban')); + + $response->assertOk(); +}); + +test('the board groups todos into status columns', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $folder = Folder::factory()->for($user)->create(['name' => 'Work']); + + Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'Open task', + 'status' => TodoStatus::Open, + 'position' => 0, + ]); + + Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'Progress task', + 'status' => TodoStatus::InProgress, + 'position' => 1, + ]); + + Todo::factory()->recycle($user)->for($folder)->completed()->create([ + 'description' => 'Completed on hold', + 'status' => TodoStatus::OnHold, + 'position' => 2, + ]); + + Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'Completed status', + 'status' => TodoStatus::Completed, + 'position' => 3, + ]); + + Livewire::test('pages::kanban') + ->assertSeeHtml('wire:sort="moveTodo"') + ->assertSeeHtml('wire:sort:group="kanban"') + ->assertSeeHtml('wire:sort:group-id="open"') + ->assertSeeHtml('wire:sort:group-id="completed"') + ->assertSeeHtmlInOrder([ + 'data-test="kanban-column-open"', + 'Open task', + 'data-test="kanban-column-in-progress"', + 'Progress task', + 'data-test="kanban-column-on-hold"', + 'data-test="kanban-column-blocked"', + 'data-test="kanban-column-cancelled"', + 'data-test="kanban-column-deferred"', + 'data-test="kanban-column-completed"', + 'Completed status', + 'Completed on hold', + ]); +}); + +test('moving a todo to another status column updates its status', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $folder = Folder::factory()->for($user)->create(['name' => 'Work']); + $todo = Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'Move me', + 'status' => TodoStatus::Open, + 'position' => 0, + ]); + + Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'Existing progress', + 'status' => TodoStatus::InProgress, + 'position' => 1, + ]); + + Livewire::test('pages::kanban') + ->call('moveTodo', $todo->id, 1, 'in-progress') + ->assertSeeHtmlInOrder([ + 'data-test="kanban-column-in-progress"', + 'Existing progress', + 'Move me', + ]); + + expect($todo->fresh()->status)->toBe(TodoStatus::InProgress); + expect($todo->fresh()->completed_at)->toBeNull(); + expect(Todo::query()->where('status', TodoStatus::InProgress)->priority()->pluck('description')->all()) + ->toBe(['Existing progress', 'Move me']); +}); + +test('toggling complete moves a todo into and out of the completed column', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $folder = Folder::factory()->for($user)->create(['name' => 'Work']); + $todo = Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'Toggle me', + 'status' => TodoStatus::Open, + 'position' => 0, + ]); + + Livewire::test('pages::kanban') + ->call('toggleComplete', $todo->id) + ->assertSeeHtmlInOrder([ + 'data-test="kanban-column-completed"', + 'Toggle me', + ]); + + expect($todo->fresh()->status)->toBe(TodoStatus::Completed); + expect($todo->fresh()->completed_at)->not->toBeNull(); + + Livewire::test('pages::kanban') + ->call('toggleComplete', $todo->id) + ->assertSeeHtmlInOrder([ + 'data-test="kanban-column-open"', + 'Toggle me', + ]); + + expect($todo->fresh()->status)->toBe(TodoStatus::Open); + expect($todo->fresh()->completed_at)->toBeNull(); +}); + +test('moving a todo to completed marks it complete without losing its workflow status', function () { + $this->travelTo('2026-09-18 09:00:00'); + + $user = User::factory()->create(); + $this->actingAs($user); + + $folder = Folder::factory()->for($user)->create(['name' => 'Work']); + $todo = Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'Finish me', + 'status' => TodoStatus::Blocked, + 'position' => 0, + ]); + + Livewire::test('pages::kanban') + ->call('moveTodo', $todo->id, 0, 'completed') + ->assertSeeHtmlInOrder([ + 'data-test="kanban-column-completed"', + 'Finish me', + ]); + + expect($todo->fresh()->status)->toBe(TodoStatus::Blocked); + expect($todo->fresh()->completed_at)->not->toBeNull(); +}); + +test('moving an open todo to completed also completes its status', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $folder = Folder::factory()->for($user)->create(['name' => 'Work']); + $todo = Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'Open task', + 'status' => TodoStatus::Open, + 'position' => 0, + ]); + + Livewire::test('pages::kanban') + ->call('moveTodo', $todo->id, 0, 'completed'); + + expect($todo->fresh()->status)->toBe(TodoStatus::Completed); + expect($todo->fresh()->completed_at)->not->toBeNull(); +}); + +test('moving a completed todo back to a status column reopens it', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $folder = Folder::factory()->for($user)->create(['name' => 'Work']); + $todo = Todo::factory()->recycle($user)->for($folder)->completed()->create([ + 'description' => 'Reopen me', + 'status' => TodoStatus::OnHold, + 'position' => 0, + ]); + + Livewire::test('pages::kanban') + ->call('moveTodo', $todo->id, 0, 'on-hold') + ->assertSeeHtmlInOrder([ + 'data-test="kanban-column-on-hold"', + 'Reopen me', + ]); + + expect($todo->fresh()->status)->toBe(TodoStatus::OnHold); + expect($todo->fresh()->completed_at)->toBeNull(); +}); + +test('reordering within a column keeps the order of other columns', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $folder = Folder::factory()->for($user)->create(['name' => 'Work']); + + $first = Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'First open', + 'status' => TodoStatus::Open, + 'position' => 0, + ]); + + Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'Second open', + 'status' => TodoStatus::Open, + 'position' => 1, + ]); + + $blocked = Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'Blocked task', + 'status' => TodoStatus::Blocked, + 'position' => 2, + ]); + + Livewire::test('pages::kanban') + ->call('moveTodo', $first->id, 1, 'open'); + + expect(Todo::query()->where('status', TodoStatus::Open)->priority()->pluck('description')->all()) + ->toBe(['Second open', 'First open']); + expect($blocked->fresh()->position)->toBe(2); +}); + +test('the board filters by search', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $folder = Folder::factory()->for($user)->create(['name' => 'Work']); + + Todo::factory()->recycle($user)->for($folder)->create(['description' => 'Review design']); + Todo::factory()->recycle($user)->for($folder)->create(['description' => 'Review proposal']); + + Livewire::test('pages::kanban') + ->set('search', 'proposal') + ->assertDontSee('Review design') + ->assertSee('Review proposal'); +}); + +test('adding a todo from a column preselects that status', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $folder = Folder::factory()->for($user)->create(['name' => 'Work']); + + Livewire::test('pages::kanban') + ->call('openCreateForm', 'blocked') + ->assertSet('todoStatus', 'blocked') + ->set('description', 'Blocked task') + ->set('formFolderId', $folder->id) + ->call('saveTodo') + ->assertSet('showTodoForm', false) + ->assertSeeHtmlInOrder([ + 'data-test="kanban-column-blocked"', + 'Blocked task', + ]); + + $todo = Todo::where('description', 'Blocked task')->firstOrFail(); + + expect($todo->status)->toBe(TodoStatus::Blocked); +}); + +test('users do not see another user todos on the board', function () { + $owner = User::factory()->create(); + $ownerFolder = Folder::factory()->for($owner)->create(['name' => 'Owner Folder']); + Todo::factory()->recycle($owner)->for($ownerFolder)->create(['description' => 'Owner secret']); + + $intruder = User::factory()->create(); + $this->actingAs($intruder); + + Livewire::test('pages::kanban') + ->assertDontSee('Owner secret') + ->assertDontSee('Owner Folder'); +}); + +test('viewers cannot move todos on the board', function () { + $owner = User::factory()->create(); + $member = User::factory()->create(); + + $organization = Organization::factory()->family()->withMember($owner)->create(); + $owner->forceFill(['current_organization_id' => $organization->id])->save(); + $organization->users()->attach($member, ['role' => OrganizationRole::Member->value]); + $member->forceFill(['current_organization_id' => $organization->id])->save(); + + $folder = Folder::factory()->for($owner)->inOrganization($organization)->sharedWithWorkspace()->create(['name' => 'Shared List']); + $todo = Todo::factory()->recycle($owner)->for($folder)->create([ + 'description' => 'Shared task', + 'status' => TodoStatus::Open, + ]); + + $this->actingAs($member); + + Livewire::test('pages::kanban') + ->assertSee('Shared task') + ->call('moveTodo', $todo->id, 0, 'in-progress') + ->assertStatus(403); + + expect($todo->fresh()->status)->toBe(TodoStatus::Open); +}); diff --git a/tests/Feature/TodosTest.php b/tests/Feature/TodosTest.php index 3629433..9d81217 100644 --- a/tests/Feature/TodosTest.php +++ b/tests/Feature/TodosTest.php @@ -266,6 +266,87 @@ test('users do not see another user todos', function () { ->assertDontSee('Owner secret'); }); +test('todos can be sorted by a column and returned to the manual order', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $folder = Folder::factory()->for($user)->create(['name' => 'Work']); + + Todo::factory()->recycle($user)->for($folder)->create(['description' => 'Alpha', 'position' => 0]); + Todo::factory()->recycle($user)->for($folder)->create(['description' => 'Bravo', 'position' => 1]); + + Livewire::test('pages::todos') + ->assertSeeInOrder(['Alpha', 'Bravo']) + ->assertSeeHtml('wire:sort="handleSort"') + ->assertSeeHtml('cursor-grab') + ->assertSeeHtml('wire:click="sort(\'description\')"') + ->call('sort', 'description') + ->assertSet('sortBy', 'description') + ->assertSet('sortDirection', 'asc') + ->assertSeeInOrder(['Alpha', 'Bravo']) + ->assertDontSeeHtml('cursor-grab') + ->call('sort', 'description') + ->assertSet('sortDirection', 'desc') + ->assertSeeInOrder(['Bravo', 'Alpha']) + ->call('sort', 'description') + ->assertSet('sortBy', null) + ->assertSet('sortDirection', 'asc') + ->assertSeeInOrder(['Alpha', 'Bravo']) + ->assertSeeHtml('cursor-grab'); +}); + +test('todos can be sorted by status workflow order', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $folder = Folder::factory()->for($user)->create(['name' => 'Work']); + + Todo::factory()->recycle($user)->for($folder)->create(['description' => 'Completed task', 'status' => TodoStatus::Completed, 'position' => 0]); + Todo::factory()->recycle($user)->for($folder)->create(['description' => 'Open task', 'status' => TodoStatus::Open, 'position' => 1]); + Todo::factory()->recycle($user)->for($folder)->create(['description' => 'Blocked task', 'status' => TodoStatus::Blocked, 'position' => 2]); + + Livewire::test('pages::todos') + ->call('sort', 'status') + ->assertSeeInOrder(['Open task', 'Blocked task', 'Completed task']); +}); + +test('todos can be sorted by folder name', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $alpha = Folder::factory()->for($user)->create(['name' => 'Alpha']); + $zulu = Folder::factory()->for($user)->create(['name' => 'Zulu']); + + Todo::factory()->recycle($user)->for($zulu)->create(['description' => 'Zulu task', 'position' => 0]); + Todo::factory()->recycle($user)->for($alpha)->create(['description' => 'Alpha task', 'position' => 1]); + + Livewire::test('pages::todos') + ->assertSeeInOrder(['Zulu task', 'Alpha task']) + ->call('sort', 'folder') + ->assertSeeInOrder(['Alpha task', 'Zulu task']) + ->call('sort', 'folder') + ->assertSeeInOrder(['Zulu task', 'Alpha task']); +}); + +test('sorting resets the loaded batch', function () { + $user = User::factory()->create(); + $this->actingAs($user); + + $folder = Folder::factory()->for($user)->create(['name' => 'Work']); + + collect(range(1, 60)) + ->each(fn (int $n) => Todo::factory()->recycle($user)->for($folder)->create([ + 'description' => 'Todo '.$n, + 'position' => $n - 1, + ])); + + Livewire::test('pages::todos') + ->call('loadMore') + ->assertSet('limit', 60) + ->call('sort', 'description') + ->assertSet('limit', 50); +}); + test('completed todos show their completion date and days to completion', function () { $this->travelTo('2026-09-10 09:00:00');