Skip to content

Commit

Permalink
Fixes #110
Browse files Browse the repository at this point in the history
  • Loading branch information
optiroot committed Aug 26, 2021
1 parent 9f5ea22 commit 27c59f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/QRCodeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private function qrCode(Url $url, $format, $contentType)
if (Storage::exists($path)) {
$qrCode = Storage::get($path);
} else {
$qrCode = QrCode::format($format)->size(300)->generate(route('click', $url));
$qrCode = QrCode::format($format)->size(300)->generate(route('click', $url->short_url));
Storage::put($path, $qrCode);
}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/url/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
</div>
</div>

@include('url.partials.qrcodemodal', ['url' => $data['url']])
@include('url.partials.qrcodemodal', ['url' => $data['url']->short_url])

</div>
</div>
Expand Down

0 comments on commit 27c59f5

Please sign in to comment.