From 12ff03b2c5932fbdebca09b1c3dcae90e5ae0f7b Mon Sep 17 00:00:00 2001 From: Frano <> Date: Fri, 15 Nov 2019 07:37:42 +0100 Subject: [PATCH] Replace "str_contains" with "Str::contains" in UrlGenerator class --- src/UrlGenerator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UrlGenerator.php b/src/UrlGenerator.php index 0706788..8b7de47 100644 --- a/src/UrlGenerator.php +++ b/src/UrlGenerator.php @@ -3,6 +3,7 @@ namespace LaravelTrailingSlash; use Illuminate\Routing\UrlGenerator as BaseUrlGenerator; +use Illuminate\Support\Str; class UrlGenerator extends BaseUrlGenerator { @@ -17,6 +18,6 @@ class UrlGenerator extends BaseUrlGenerator */ public function format($root, $path, $route = null) { - return parent::format($root, $path, $route).(str_contains($path, '#') ? '' : '/'); + return parent::format($root, $path, $route).(Str::contains($path, '#') ? '' : '/'); } }