From 29a108c2bdc70c9910286dd113c2209cbc799534 Mon Sep 17 00:00:00 2001 From: Stolz Date: Sun, 22 Mar 2020 20:28:22 +0800 Subject: [PATCH] Remove Laravel helpers dependency --- src/Middleware.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Middleware.php b/src/Middleware.php index 52e12be..fdb8713 100644 --- a/src/Middleware.php +++ b/src/Middleware.php @@ -1,5 +1,6 @@ headers->get('content-type'); - if(str_contains($contentType, 'text/html')) + if(Str::contains($contentType, 'text/html')) $response->setContent(app('stolz.tidy')->parse($response->getContent())); return $response;