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 d241969 commit 4d5d54eCopy full SHA for 4d5d54e
app/Http/Controllers/Api/V1/SiteController.php
@@ -7,6 +7,7 @@
7
use App\Models\Site;
8
use App\RemoteSite\Connection;
9
use App\Traits\ApiResponse;
10
+use Carbon\Carbon;
11
use GuzzleHttp\Exception\ClientException;
12
use GuzzleHttp\Exception\ServerException;
13
use Illuminate\Http\JsonResponse;
@@ -52,6 +53,9 @@ public function register(Request $request): JsonResponse
52
53
54
$site->key = $key;
55
$site->url = $url;
56
+ $site->last_seen = Carbon::now();
57
+
58
+ // Fill with site info
59
$site->fill($healthResponse->toArray());
60
61
$site->save();
0 commit comments