isCompleted(), 404); $this->share = $share; $flashedPassword = session('share_password'); if (is_array($flashedPassword) && ($flashedPassword['token'] ?? null) === $share->token) { $this->password = Crypt::decryptString($flashedPassword['password']); } } public function render(): mixed { $shareUrl = route('share.download', $this->share); return view('livewire.share-created', [ 'shareUrl' => $shareUrl, 'qrCodeSvg' => app(QrCodeService::class)->svg($shareUrl), 'siteTitle' => Setting::get('site_title') ?: config('app.name'), ]); } }