You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I had some troubles to install, and for the next people that wants to install it is good to know.
Add to config/app.php.
[
// ...
Shimomo\Ping\LaravelPingServiceProvider::class,
],
// ...
'aliases' => [
// ...
'Ping' => Shimomo\Ping\LaravelPingFacade::class
],
];
On the return it's not returning the latency instead it, is returning 1 if the host is pingable or 0 if is not. I believe that this is an issue from JJG ping class (https://github.com/geerlingguy/Ping) but I didn't had time to search it.
Is good to people know if you want to setup a timeout to your ping, go to
vendor/shimomo/laravel-ping/src/LaravelPing.php and add the line before $result=$ping-ping():
$ping->setTimeout(2); where 2 is the time in seconds of the timeout.
The text was updated successfully, but these errors were encountered:
Hello. I had some troubles to install, and for the next people that wants to install it is good to know.
Add to config/app.php.
[ // ... Shimomo\Ping\LaravelPingServiceProvider::class, ], // ... 'aliases' => [ // ... 'Ping' => Shimomo\Ping\LaravelPingFacade::class ], ]; On the return it's not returning the latency instead it, is returning 1 if the host is pingable or 0 if is not. I believe that this is an issue from JJG ping class (https://github.com/geerlingguy/Ping) but I didn't had time to search it. Is good to people know if you want to setup a timeout to your ping, go to vendor/shimomo/laravel-ping/src/LaravelPing.php and add the line before $result=$ping-ping(): $ping->setTimeout(2); where 2 is the time in seconds of the timeout.The text was updated successfully, but these errors were encountered: