Skip to content

Commit

Permalink
Fix BrowsershotFunction for Laravel 8
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed Nov 6, 2023
1 parent 86389bc commit 5048b0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Functions/BrowsershotFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Wnx\SidecarBrowsershot\Functions;

use Illuminate\Support\Str;
use Hammerstone\Sidecar\Architecture;
use Hammerstone\Sidecar\LambdaFunction;
use Hammerstone\Sidecar\Package;
Expand Down Expand Up @@ -34,7 +35,7 @@ public function package()
protected function customFonts(): array
{
$fonts = collect();
$fontDirectory = str(config('sidecar-browsershot.fonts'))->finish(DIRECTORY_SEPARATOR);
$fontDirectory = Str::finish(config('sidecar-browsershot.fonts'), DIRECTORY_SEPARATOR);

// Check if the custom fonts folder exists.
if (file_exists($fontDirectory)) {
Expand Down

0 comments on commit 5048b0e

Please sign in to comment.