We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e36cb6 commit 521383fCopy full SHA for 521383f
src/Middleware/Ip.php
@@ -13,8 +13,8 @@ public function check($patterns)
13
$status = false;
14
15
try {
16
- $model = config('firewall.models.ip', Model::class);
17
- $status = $model::blocked($this->ip())->pluck('id')->first();
+ $ip = config('firewall.models.ip', Model::class);
+ $status = $ip::blocked($this->ip())->pluck('id')->first();
18
} catch (QueryException $e) {
19
// Base table or view not found
20
//$status = ($e->getCode() == '42S02') ? false : true;
0 commit comments