Skip to content

Commit 1fd08ed

Browse files
Merge pull request #8 from jprodrigues70/v1.0.2
Fix Client constructor
2 parents eb61634 + 3b289f9 commit 1fd08ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Contracts/Client.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ class Client
99
public $id;
1010
public $ip;
1111
public $userAgent;
12+
public $key;
13+
public $logKey;
14+
public $url;
1215

1316
public function __construct($request)
1417
{
15-
$this->id = Auth::check() ? Auth::id() : $this->ip;
1618
$this->ip = $request->getClientIp();
19+
$this->id = Auth::check() ? Auth::id() : $this->ip;
1720
$this->userAgent = $request->header('User-Agent');
1821
$this->key = "block_bot:{$this->id}";
1922
$this->logKey = "block_bot:notified:{$this->ip}";

0 commit comments

Comments
 (0)