Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Updates to install #2

Open
jmanoel opened this issue Feb 13, 2018 · 0 comments
Open

Updates to install #2

jmanoel opened this issue Feb 13, 2018 · 0 comments

Comments

@jmanoel
Copy link

jmanoel commented Feb 13, 2018

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.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant