fix: ip
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Support\VisitorIp;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
@@ -54,7 +55,7 @@ class SystemLog extends Model
|
||||
'actor_id' => $actor->id,
|
||||
'actor_username' => (string) $actor->username,
|
||||
'content' => $content,
|
||||
'ip' => $request?->ip(),
|
||||
'ip' => $request ? VisitorIp::fromRequest($request) : null,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user