Skip to content

Commit 521383f

Browse files
committed
Updated IP model name reference
1 parent 8e36cb6 commit 521383f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Middleware/Ip.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public function check($patterns)
1313
$status = false;
1414

1515
try {
16-
$model = config('firewall.models.ip', Model::class);
17-
$status = $model::blocked($this->ip())->pluck('id')->first();
16+
$ip = config('firewall.models.ip', Model::class);
17+
$status = $ip::blocked($this->ip())->pluck('id')->first();
1818
} catch (QueryException $e) {
1919
// Base table or view not found
2020
//$status = ($e->getCode() == '42S02') ? false : true;

0 commit comments

Comments
 (0)