Skip to content

Commit

Permalink
Fix deprecation in PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MultiSuperFreek authored Oct 21, 2022
1 parent 589422a commit 5fe319c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dripper.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function getIntervalAttribute() : string

public function getUrlAttribute() : string
{
return trim(config('genealabs-laravel-caffeine.domain', url('/')), '/')
return trim(config('genealabs-laravel-caffeine.domain') ?? url('/'), '/')
. '/'
. trim(config(
'genealabs-laravel-caffeine.route',
Expand Down

0 comments on commit 5fe319c

Please sign in to comment.