Skip to content

Commit a23372d

Browse files
committed
wip
1 parent fc86b6d commit a23372d

23 files changed

Lines changed: 4728 additions & 69 deletions

config/backstage/user-management.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
'record' => [
2121
'user_logins' => true,
2222
'user_traffic' => true,
23-
]
23+
],
2424
];

helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
function geo($attribute = '')
55
{
66
if (! session('geo')) {
7-
$geo = json_decode(@file_get_contents('https://pro.ip-api.com/json/'.request()->ip().'?key='.config('services.ip-api.key')));
7+
$geo = json_decode(@file_get_contents('https://pro.ip-api.com/json/' . request()->ip() . '?key=' . config('services.ip-api.key')));
88

99
session()->put('geo', $geo);
1010
} else {
@@ -13,4 +13,4 @@ function geo($attribute = '')
1313

1414
return $attribute && isset($geo->{$attribute}) ? $geo->{$attribute} : null;
1515
}
16-
}
16+
}

0 commit comments

Comments
 (0)