From: Vincent Vanwaelscappel Date: Tue, 17 May 2022 07:35:10 +0000 (+0200) Subject: wip #5282 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4690391f783115d40f41d8e6b02f6538f67d1713;p=cubedesigners_userdatabase.git wip #5282 --- diff --git a/src/app/Models/User.php b/src/app/Models/User.php index 612133b..4c0fc78 100644 --- a/src/app/Models/User.php +++ b/src/app/Models/User.php @@ -219,9 +219,9 @@ class User extends CubistMagicAuthenticatable $builder->whereIn('id', Permissions::getManagedUsers($bu->id)); } - public function getToolboxSetting($key) + public function getToolboxSetting($key, $default = null) { - return Arr::get($this->getAttribute('toolbox_settings'), $key); + return Arr::get($this->getAttribute('toolbox_settings'), $key, $default); } }