A free open source IT asset/license management system
Upgrade to Laravel 12
Marcus Moore3ce017fa68a2
diff --git a/app/Rules/NumericEncrypted.php b/app/Rules/NumericEncrypted.phpindex ff551e0322..7440844bae 100644--- a/app/Rules/NumericEncrypted.php+++ b/app/Rules/NumericEncrypted.php@@ -23,7 +23,7 @@ class NumericEncrypted implements ValidationRuletry {$attributeName = trim(preg_replace('/_+|snipeit|\d+/', ' ', $attribute));$decrypted = Crypt::decrypt($value);- if (!$this->validateNumeric($attributeName, $decrypted) && !is_null($decrypted)) {+ if (!$this->validateNumeric($attributeName, $decrypted, []) && !is_null($decrypted)) {$fail(trans('validation.numeric', ['attribute' => $attributeName]));}} catch (\Exception $e) {diff --git a/composer.json b/composer.jsonindex 2be66371ec..f1aca1f90c 100644--- a/composer.json+++ b/composer.json@@ -40,7 +40,7 @@"javiereguiluz/easyslugger": "^1.0","laravel-notification-channels/google-chat": "^3.0","laravel-notification-channels/microsoft-teams": "^1.2",- "laravel/framework": "^11.0",+ "laravel/framework": "^12.0","laravel/helpers": "^1.4","laravel/passport": "^12.0","laravel/slack-notification-channel": "^3.4",diff --git a/composer.lock b/composer.lockindex 00f03b135a..2546d7c70b 100644--- a/composer.lock+++ b/composer.lock@@ -4,7 +4,7 @@"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies","This file is @generated automatically"],- "content-hash": "d8da3e071a68de7a14f0bafb02b038de",+ "content-hash": "7ad2fea76ed176b9a86ba5eeb0b07557","packages": [{"name": "alek13/slack",@@ -1553,24 +1553,24 @@},{"name": "erusev/parsedown",- "version": "1.7.4",+ "version": "1.8.0","source": {"type": "git","url": "https://github.com/erusev/parsedown.git",- "reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3"+ "reference": "96baaad00f71ba04d76e45b4620f54d3beabd6f7"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/erusev/parsedown/zipball/cb17b6477dfff935958ba01325f2e8a2bfa6dab3",- "reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3",+ "url": "https://api.github.com/repos/erusev/parsedown/zipball/96baaad00f71ba04d76e45b4620f54d3beabd6f7",+ "reference": "96baaad00f71ba04d76e45b4620f54d3beabd6f7","shasum": ""},"require": {"ext-mbstring": "*",- "php": ">=5.3.0"+ "php": ">=7.1"},"require-dev": {- "phpunit/phpunit": "^4.8.35"+ "phpunit/phpunit": "^7.5|^8.5|^9.6"},"type": "library","autoload": {@@ -1597,9 +1597,15 @@],"support": {"issues": "https://github.com/erusev/parsedown/issues",- "source": "https://github.com/erusev/parsedown/tree/1.7.x"+ "source": "https://github.com/erusev/parsedown/tree/1.8.0"},- "time": "2019-12-30T22:54:17+00:00"+ "funding": [+ {+ "url": "https://github.com/erusev",+ "type": "github"+ }+ ],+ "time": "2026-02-16T11:41:01+00:00"},{"name": "fakerphp/faker",@@ -2577,20 +2583,20 @@},{"name": "laravel/framework",- "version": "v11.50.0",+ "version": "v12.55.1","source": {"type": "git","url": "https://github.com/laravel/framework.git",- "reference": "c761f591209b45f56c1317ecbff0b04c89cf7ba2"+ "reference": "6d9185a248d101b07eecaf8fd60b18129545fd33"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/laravel/framework/zipball/c761f591209b45f56c1317ecbff0b04c89cf7ba2",- "reference": "c761f591209b45f56c1317ecbff0b04c89cf7ba2",+ "url": "https://api.github.com/repos/laravel/framework/zipball/6d9185a248d101b07eecaf8fd60b18129545fd33",+ "reference": "6d9185a248d101b07eecaf8fd60b18129545fd33","shasum": ""},"require": {- "brick/math": "^0.9.3|^0.10.2|^0.11|^0.12|^0.13|^0.14",+ "brick/math": "^0.11|^0.12|^0.13|^0.14","composer-runtime-api": "^2.2","doctrine/inflector": "^2.0.5","dragonmantank/cron-expression": "^3.4",@@ -2605,32 +2611,34 @@"fruitcake/php-cors": "^1.3","guzzlehttp/guzzle": "^7.8.2","guzzlehttp/uri-template": "^1.0",- "laravel/prompts": "^0.1.18|^0.2.0|^0.3.0",+ "laravel/prompts": "^0.3.0","laravel/serializable-closure": "^1.3|^2.0",- "league/commonmark": "^2.7",+ "league/commonmark": "^2.8.1","league/flysystem": "^3.25.1","league/flysystem-local": "^3.25.1","league/uri": "^7.5.1","monolog/monolog": "^3.0",- "nesbot/carbon": "^2.72.6|^3.8.4",+ "nesbot/carbon": "^3.8.4","nunomaduro/termwind": "^2.0","php": "^8.2","psr/container": "^1.1.1|^2.0.1","psr/log": "^1.0|^2.0|^3.0","psr/simple-cache": "^1.0|^2.0|^3.0","ramsey/uuid": "^4.7",- "symfony/console": "^7.0.3",- "symfony/error-handler": "^7.0.3",- "symfony/finder": "^7.0.3",+ "symfony/console": "^7.2.0",+ "symfony/error-handler": "^7.2.0",+ "symfony/finder": "^7.2.0","symfony/http-foundation": "^7.2.0",- "symfony/http-kernel": "^7.0.3",- "symfony/mailer": "^7.0.3",- "symfony/mime": "^7.0.3",- "symfony/polyfill-php83": "^1.31",- "symfony/process": "^7.0.3",- "symfony/routing": "^7.0.3",- "symfony/uid": "^7.0.3",- "symfony/var-dumper": "^7.0.3",+ "symfony/http-kernel": "^7.2.0",+ "symfony/mailer": "^7.2.0",+ "symfony/mime": "^7.2.0",+ "symfony/polyfill-php83": "^1.33",+ "symfony/polyfill-php84": "^1.33",+ "symfony/polyfill-php85": "^1.33",+ "symfony/process": "^7.2.0",+ "symfony/routing": "^7.2.0",+ "symfony/uid": "^7.2.0",+ "symfony/var-dumper": "^7.2.0","tijsverkoyen/css-to-inline-styles": "^2.2.5","vlucas/phpdotenv": "^5.6.1","voku/portable-ascii": "^2.0.2"@@ -2662,6 +2670,7 @@"illuminate/filesystem": "self.version","illuminate/hashing": "self.version","illuminate/http": "self.version",+ "illuminate/json-schema": "self.version","illuminate/log": "self.version","illuminate/macroable": "self.version","illuminate/mail": "self.version",@@ -2671,6 +2680,7 @@"illuminate/process": "self.version","illuminate/queue": "self.version","illuminate/redis": "self.version",+ "illuminate/reflection": "self.version","illuminate/routing": "self.version","illuminate/session": "self.version","illuminate/support": "self.version",@@ -2694,17 +2704,18 @@"league/flysystem-read-only": "^3.25.1","league/flysystem-sftp-v3": "^3.25.1","mockery/mockery": "^1.6.10",- "orchestra/testbench-core": "^9.18.0",- "pda/pheanstalk": "^5.0.6",+ "opis/json-schema": "^2.4.1",+ "orchestra/testbench-core": "^10.9.0",+ "pda/pheanstalk": "^5.0.6|^7.0.0","php-http/discovery": "^1.15",- "phpstan/phpstan": "2.1.41",- "phpunit/phpunit": "^10.5.35|^11.3.6|^12.0.1",- "predis/predis": "^2.3",- "resend/resend-php": "^0.10.0",- "symfony/cache": "^7.0.3",- "symfony/http-client": "^7.0.3",- "symfony/psr-http-message-bridge": "^7.0.3",- "symfony/translation": "^7.0.3"+ "phpstan/phpstan": "^2.1.41",+ "phpunit/phpunit": "^10.5.35|^11.5.3|^12.0.1",+ "predis/predis": "^2.3|^3.0",+ "resend/resend-php": "^0.10.0|^1.0",+ "symfony/cache": "^7.2.0",+ "symfony/http-client": "^7.2.0",+ "symfony/psr-http-message-bridge": "^7.2.0",+ "symfony/translation": "^7.2.0"},"suggest": {"ably/ably-php": "Required to use the Ably broadcast driver (^1.0).",@@ -2719,7 +2730,7 @@"ext-pdo": "Required to use all database features.","ext-posix": "Required to use all features of the queue worker.","ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0|^6.0).",- "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).",+ "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).","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).",@@ -2730,22 +2741,22 @@"mockery/mockery": "Required to use mocking (^1.6).","pda/pheanstalk": "Required to use the beanstalk queue driver (^5.0).","php-http/discovery": "Required to use PSR-7 bridging features (^1.15).",- "phpunit/phpunit": "Required to use assertions and run tests (^10.5.35|^11.3.6|^12.0.1).",- "predis/predis": "Required to use the predis connector (^2.3).",+ "phpunit/phpunit": "Required to use assertions and run tests (^10.5.35|^11.5.3|^12.0.1).",+ "predis/predis": "Required to use the predis connector (^2.3|^3.0).","psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).","pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).",- "resend/resend-php": "Required to enable support for the Resend mail transport (^0.10.0).",- "symfony/cache": "Required to PSR-6 cache bridge (^7.0).",- "symfony/filesystem": "Required to enable support for relative symbolic links (^7.0).",- "symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.0).",- "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.0).",- "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.0).",- "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.0)."+ "resend/resend-php": "Required to enable support for the Resend mail transport (^0.10.0|^1.0).",+ "symfony/cache": "Required to PSR-6 cache bridge (^7.2).",+ "symfony/filesystem": "Required to enable support for relative symbolic links (^7.2).",+ "symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.2).",+ "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.2).",+ "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.2).",+ "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.2)."},"type": "library","extra": {"branch-alias": {- "dev-master": "11.x-dev"+ "dev-master": "12.x-dev"}},"autoload": {@@ -2756,6 +2767,7 @@"src/Illuminate/Filesystem/functions.php","src/Illuminate/Foundation/helpers.php","src/Illuminate/Log/functions.php",+ "src/Illuminate/Reflection/helpers.php","src/Illuminate/Support/functions.php","src/Illuminate/Support/helpers.php"],@@ -2764,7 +2776,8 @@"Illuminate\\Support\\": ["src/Illuminate/Macroable/","src/Illuminate/Collections/",- "src/Illuminate/Conditionable/"+ "src/Illuminate/Conditionable/",+ "src/Illuminate/Reflection/"]}},@@ -2788,7 +2801,7 @@"issues": "https://github.com/laravel/framework/issues","source": "https://github.com/laravel/framework"},- "time": "2026-03-17T19:35:22+00:00"+ "time": "2026-03-18T14:28:59+00:00"},{"name": "laravel/helpers",@@ -3045,30 +3058,30 @@},{"name": "laravel/slack-notification-channel",- "version": "v3.6.0",+ "version": "v3.8.0","source": {"type": "git","url": "https://github.com/laravel/slack-notification-channel.git",- "reference": "642677a57490eebccb7e9fb666f5a5379c6e3459"+ "reference": "3c27f6e851570274255809f4d3939ff5c2ace82b"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/laravel/slack-notification-channel/zipball/642677a57490eebccb7e9fb666f5a5379c6e3459",- "reference": "642677a57490eebccb7e9fb666f5a5379c6e3459",+ "url": "https://api.github.com/repos/laravel/slack-notification-channel/zipball/3c27f6e851570274255809f4d3939ff5c2ace82b",+ "reference": "3c27f6e851570274255809f4d3939ff5c2ace82b","shasum": ""},"require": {"guzzlehttp/guzzle": "^7.0",- "illuminate/http": "^9.0|^10.0|^11.0|^12.0",- "illuminate/notifications": "^9.0|^10.0|^11.0|^12.0",- "illuminate/support": "^9.0|^10.0|^11.0|^12.0",+ "illuminate/http": "^9.0|^10.0|^11.0|^12.0|^13.0",+ "illuminate/notifications": "^9.0|^10.0|^11.0|^12.0|^13.0",+ "illuminate/support": "^9.0|^10.0|^11.0|^12.0|^13.0","php": "^8.0"},"require-dev": {"mockery/mockery": "^1.0",- "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",- "phpstan/phpstan": "^1.10",- "phpunit/phpunit": "^9.0|^10.4|^11.5"+ "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0|^11.0",+ "phpstan/phpstan": "^1.10|^2.0",+ "phpunit/phpunit": "^9.0|^10.4|^11.5|^12.0|^13.0"},"type": "library","extra": {@@ -3104,9 +3117,9 @@],"support": {"issues": "https://github.com/laravel/slack-notification-channel/issues",- "source": "https://github.com/laravel/slack-notification-channel/tree/v3.6.0"+ "source": "https://github.com/laravel/slack-notification-channel/tree/v3.8.0"},- "time": "2025-06-26T16:51:38+00:00"+ "time": "2026-03-17T16:40:49+00:00"},{"name": "laravel/socialite",@@ -3311,22 +3324,22 @@},{"name": "lcobucci/jwt",- "version": "5.5.0",+ "version": "5.6.0","source": {"type": "git","url": "https://github.com/lcobucci/jwt.git",- "reference": "a835af59b030d3f2967725697cf88300f579088e"+ "reference": "bb3e9f21e4196e8afc41def81ef649c164bca25e"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/lcobucci/jwt/zipball/a835af59b030d3f2967725697cf88300f579088e",- "reference": "a835af59b030d3f2967725697cf88300f579088e",+ "url": "https://api.github.com/repos/lcobucci/jwt/zipball/bb3e9f21e4196e8afc41def81ef649c164bca25e",+ "reference": "bb3e9f21e4196e8afc41def81ef649c164bca25e","shasum": ""},"require": {"ext-openssl": "*","ext-sodium": "*",- "php": "~8.2.0 || ~8.3.0 || ~8.4.0",+ "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0","psr/clock": "^1.0"},"require-dev": {@@ -3368,7 +3381,7 @@],"support": {"issues": "https://github.com/lcobucci/jwt/issues",- "source": "https://github.com/lcobucci/jwt/tree/5.5.0"+ "source": "https://github.com/lcobucci/jwt/tree/5.6.0"},"funding": [{@@ -3380,7 +3393,7 @@"type": "patreon"}],- "time": "2025-01-26T21:29:45+00:00"+ "time": "2025-10-17T11:30:53+00:00"},{"name": "league/commonmark",@@ -9921,6 +9934,86 @@],"time": "2025-07-08T02:45:35+00:00"},+ {+ "name": "symfony/polyfill-php84",+ "version": "v1.33.0",+ "source": {+ "type": "git",+ "url": "https://github.com/symfony/polyfill-php84.git",+ "reference": "d8ced4d875142b6a7426000426b8abc631d6b191"+ },+ "dist": {+ "type": "zip",+ "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/d8ced4d875142b6a7426000426b8abc631d6b191",+ "reference": "d8ced4d875142b6a7426000426b8abc631d6b191",+ "shasum": ""+ },+ "require": {+ "php": ">=7.2"+ },+ "type": "library",+ "extra": {+ "thanks": {+ "url": "https://github.com/symfony/polyfill",+ "name": "symfony/polyfill"+ }+ },+ "autoload": {+ "files": [+ "bootstrap.php"+ ],+ "psr-4": {+ "Symfony\\Polyfill\\Php84\\": ""+ },+ "classmap": [+ "Resources/stubs"+ ]+ },+ "notification-url": "https://packagist.org/downloads/",+ "license": [+ "MIT"+ ],+ "authors": [+ {+ "name": "Nicolas Grekas",+ "email": "[email protected]"+ },+ {+ "name": "Symfony Community",+ "homepage": "https://symfony.com/contributors"+ }+ ],+ "description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions",+ "homepage": "https://symfony.com",+ "keywords": [+ "compatibility",+ "polyfill",+ "portable",+ "shim"+ ],+ "support": {+ "source": "https://github.com/symfony/polyfill-php84/tree/v1.33.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": "2025-06-24T13:30:11+00:00"+ },{"name": "symfony/polyfill-php85","version": "v1.33.0",diff --git a/config/auth.php b/config/auth.phpindex bbaac631b0..4d090ee9dd 100644--- a/config/auth.php+++ b/config/auth.php@@ -100,21 +100,14 @@ return ['email' => 'auth.emails.password','table' => 'password_resets','expire' => env('RESET_PASSWORD_LINK_EXPIRES', 900),- 'throttle' => [- 'max_attempts' => env('LOGIN_MAX_ATTEMPTS', 5),- 'lockout_duration' => env('LOGIN_LOCKOUT_DURATION', 60),- ],-+ 'throttle' => env('LOGIN_MAX_ATTEMPTS', 5),],'invites' => ['provider' => 'users','table' => 'password_resets','expire' => env('INVITE_PASSWORD_LINK_EXPIRES', 2880),- 'throttle' => [- 'max_attempts' => env('LOGIN_MAX_ATTEMPTS', 5),- 'lockout_duration' => env('LOGIN_LOCKOUT_DURATION', 60),- ],+ 'throttle' => env('LOGIN_MAX_ATTEMPTS', 5),],],