diff --git a/composer.json b/composer.json index 5509b21..1d0a571 100644 --- a/composer.json +++ b/composer.json @@ -8,44 +8,44 @@ "php": "^7.3", "ext-json": "*", "ext-pdo": "*", - "bensampo/laravel-enum": "3.0.0", + "bensampo/laravel-enum": "3.1.0", "davejamesmiller/laravel-breadcrumbs": "5.3.2", - "doctrine/dbal": "2.11.0", - "fideloper/proxy": "4.4.0", - "fruitcake/laravel-cors": "2.0.2", + "doctrine/dbal": "2.12.0", + "fideloper/proxy": "4.4.1", + "fruitcake/laravel-cors": "2.0.3", "glorand/laravel-model-settings": "4.0.0", - "guzzlehttp/guzzle": "7.1.0", + "guzzlehttp/guzzle": "7.2.0", "kaishiyoku/hera-rss-crawler": "0.8.0", - "kaishiyoku/laravel-cli-create-user": "2.4.1", + "kaishiyoku/laravel-cli-create-user": "3.1.0", "kaishiyoku/laravel-color-validation": "1.5.0", "kaishiyoku/laravel-menu": "4.5.2", - "kaishiyoku/laravel-recharts": "0.6.0", + "kaishiyoku/laravel-recharts": "0.7.2", "khill/php-duration": "1.0.6", "laracasts/flash": "3.2", - "laravel/framework": "8.6.0", - "laravel/helpers": "1.3.0", - "laravel/horizon": "5.1.0", - "laravel/tinker": "2.4.2", - "laravel/ui": "3.0.0", + "laravel/framework": "8.14.0", + "laravel/helpers": "1.4.0", + "laravel/horizon": "5.4.0", + "laravel/tinker": "2.5.0", + "laravel/ui": "3.1.0", "laravelcollective/html": "6.2.0", - "pda/pheanstalk": "4.0.2", + "pda/pheanstalk": "4.0.3", "predis/predis": "1.1.6", "ramsey/uuid": "4.1.1", - "sentry/sentry-laravel": "1.9.0", + "sentry/sentry-laravel": "2.2.0", "spatie/flysystem-dropbox": "1.2.2", - "spatie/laravel-backup": "6.11.2", + "spatie/laravel-backup": "6.11.6", "watson/rememberable": "5.0.0", "yab/laravel-scout-mysql-driver": "3.0.0" }, "require-dev": { "barryvdh/laravel-debugbar": "3.5.1", "barryvdh/laravel-ide-helper": "2.8.1", - "facade/ignition": "2.3.7", + "facade/ignition": "2.5.1", "fzaninotto/faker": "1.9.1", "mockery/mockery": "1.4.2", - "nunomaduro/collision": "5.0.2", - "nunomaduro/larastan": "0.6.4", - "phpunit/phpunit": "^9.0" + "nunomaduro/collision": "5.1.0", + "nunomaduro/larastan": "0.6.9", + "phpunit/phpunit": "^9.3" }, "autoload": { "psr-4": { diff --git a/config/createuser.php b/config/createuser.php index da79e5e..069e5bd 100644 --- a/config/createuser.php +++ b/config/createuser.php @@ -4,6 +4,12 @@ use Ramsey\Uuid\Uuid; return [ + + /* + * Whether or not the Opis Closure serialization is enabled + */ + 'enable_serialization' => true, + /* * The class name of the user model to be used. */ @@ -26,9 +32,9 @@ 'password' => [ 'validation_rules' => 'string|min:6', 'secret' => true, - 'modifier_fn' => function ($value) { + 'modifier_fn' => \Opis\Closure\serialize(function ($value) { return Hash::make($value); - }, + }), ], 'is_active' => [ 'validation_rules' => 'boolean', @@ -42,11 +48,11 @@ ], ], - 'post_creation_fn' => function (\App\Models\User $user) { + 'post_creation_fn' => \Opis\Closure\serialize(function ($user) { $user->api_token = Uuid::uuid4(); $user->save(); return \App\Http\Controllers\Auth\RegisterController::createDefaultCategory($user); - }, + }), ];