From bb2960e08b60c059ba55cf8110e401f03c7f62fe Mon Sep 17 00:00:00 2001 From: mchev Date: Tue, 21 Feb 2023 18:17:59 +0100 Subject: [PATCH] Missing Class --- src/IP.php | 4 ++-- src/Middleware/IPBanned.php | 2 +- src/Middleware/LogoutBanned.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/IP.php b/src/IP.php index 162b9c1..9a607c3 100644 --- a/src/IP.php +++ b/src/IP.php @@ -2,8 +2,8 @@ namespace Mchev\Banhammer; -use Illuminate\Support\Facades\Cache; use Illuminate\Database\Eloquent\Builder; +use Illuminate\Support\Facades\Cache; use Mchev\Banhammer\Models\Ban; class IP @@ -44,7 +44,7 @@ public static function banned(): Builder ->groupBy('ip'); } - public static function getBannedIPsFromCache(): Array + public static function getBannedIPsFromCache(): array { return Cache::has('banned-ips') ? Cache::get('banned-ips') diff --git a/src/Middleware/IPBanned.php b/src/Middleware/IPBanned.php index a18e2b6..6818b0b 100644 --- a/src/Middleware/IPBanned.php +++ b/src/Middleware/IPBanned.php @@ -3,7 +3,7 @@ namespace Mchev\Banhammer\Middleware; use Closure; -use Illuminate\Support\Facades\Cache; +use Mchev\Banhammer\IP; use Symfony\Component\HttpFoundation\Response; class IPBanned diff --git a/src/Middleware/LogoutBanned.php b/src/Middleware/LogoutBanned.php index a2320be..f339b7e 100644 --- a/src/Middleware/LogoutBanned.php +++ b/src/Middleware/LogoutBanned.php @@ -3,7 +3,7 @@ namespace Mchev\Banhammer\Middleware; use Closure; -use Illuminate\Support\Facades\Cache; +use Mchev\Banhammer\IP; use Symfony\Component\HttpFoundation\Response; class LogoutBanned