Skip to content

Commit 8e36cb6

Browse files
committed
Revert "updated model name reference"
This reverts commit 22d5daa.
1 parent 22d5daa commit 8e36cb6

File tree

7 files changed

+2
-2
lines changed

7 files 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-
$ip = config('firewall.models.ip', Model::class);
17-
$status = $ip::blocked($this->ip())->pluck('id')->first();
16+
$model = config('firewall.models.ip', Model::class);
17+
$status = $model::blocked($this->ip())->pluck('id')->first();
1818
} catch (QueryException $e) {
1919
// Base table or view not found
2020
//$status = ($e->getCode() == '42S02') ? false : true;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)