key; $this->key = Str::startsWith(config('app.old_key'), 'base64:') ? base64_decode(substr(config('app.old_key'), 7)) : config('app.old_key'); return tap(parent::decrypt($payload, $unserialize), function () use ($currentKey) { $this->key = $currentKey; }); } } }