Skip to content

Commit

Permalink
Merge pull request #7 from zachlm/master
Browse files Browse the repository at this point in the history
Use null coalesce for $uri in prepareUrlForRequest
  • Loading branch information
albertcht authored Oct 5, 2018
2 parents 72132b6 + fac1f61 commit 02d787b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/MakesHttpRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ protected function prepareUrlForRequest($uri)
}

if (! Str::startsWith($uri, 'http')) {
$uri = ($this->baseUrl || config('app.url')) . '/' . $uri;
$uri = ($this->baseUrl ?? config('app.url')) . '/' . $uri;
}

return trim($uri, '/');
Expand Down

0 comments on commit 02d787b

Please sign in to comment.