Skip to content

Commit 6fb404f

Browse files
committed
Revert "exploring address pinging"
This reverts commit 90978bc.
1 parent 90978bc commit 6fb404f

File tree

8 files changed

+0
-262
lines changed

8 files changed

+0
-262
lines changed

app/Jobs/PingAddressCommand.php

Lines changed: 0 additions & 50 deletions
This file was deleted.

app/Models/Ping.php

Lines changed: 0 additions & 46 deletions
This file was deleted.

app/Models/PingAddress.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

database/factories/PingAddressFactory.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

database/factories/PingFactory.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

database/migrations/2022_12_17_051116_create_ping_addresses_table.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

database/migrations/2022_12_17_052859_create_pings_table.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

routes/test.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
use Illuminate\Support\Facades\Http;
43
use Illuminate\Support\Facades\Route;
54

65
Route::group(
@@ -9,27 +8,5 @@
98
],
109
function () {
1110
// silence is golden
12-
13-
Route::get('/', function () {
14-
15-
// https://github.com/striebwj/laravel-ping/blob/master/src/LaravelPing.php
16-
17-
// create a new cURL resource
18-
$ch = curl_init('https://alexjustesen.com/');
19-
curl_setopt($ch, CURLOPT_USERAGENT, 'Speedtest Tracker (https://docs.speedtest-tracker.dev)');
20-
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
21-
curl_setopt($ch, CURLOPT_MAXREDIRS, 5);
22-
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
23-
24-
// grab URL and pass it to the browser
25-
curl_exec($ch);
26-
27-
$data = curl_getinfo($ch);
28-
29-
// close cURL resource, and free up system resources
30-
curl_close($ch);
31-
32-
dd($data);
33-
});
3411
}
3512
);

0 commit comments

Comments
 (0)