@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('ipblockers', function (Blueprint $table) { |
|
16 | + Schema::create('ipblockers', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->string('ip_address', 45); |
19 | 19 | $table->boolean('status')->default(false); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | public static function isBlocked() |
22 | 22 | { |
23 | 23 | $obj = false; |
24 | - if(self::where(['ip_address' => \Request::ip(), 'status' => true])->count()) { |
|
24 | + if (self::where(['ip_address' => \Request::ip(), 'status' => true])->count()) { |
|
25 | 25 | $obj = true; |
26 | 26 | } |
27 | 27 | return $obj; |