Skip to content

Commit

Permalink
Merge pull request #144 from MultiSuperFreek/fix-php-deprecation
Browse files Browse the repository at this point in the history
Fix deprecation in PHP 8.1
  • Loading branch information
mikebronner authored Oct 21, 2022
2 parents 589422a + 5fe319c commit ea720d4
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 ea720d4

Please sign in to comment.