LaravelPackages.net
Acme Inc.
Toggle sidebar
thtg88/laravel-pingable

Pingable provides a ping route for your Laravel application.

33
0
v0.8.0
About thtg88/laravel-pingable

thtg88/laravel-pingable is a Laravel package for pingable provides a ping route for your laravel application.. It currently has 0 GitHub stars and 33 downloads on Packagist (latest version v0.8.0). Install it with composer require thtg88/laravel-pingable. Discover more Laravel packages by thtg88 or browse all Laravel packages to compare alternatives.

Last updated

Pingable

Pingable provides a ping route for your Laravel application.

Installation

composer require thtg88/laravel-pingable

Publish Configuration

If you want to change any of the default configuration variables, you can publish the config file with the following command:

php artisan vendor:publish --tag=pingable-config

Available configuration options

| Config Option | Type | Description | Default | |---------------|------|-------------|---------| | pingable.response | mixed | the response to be output by the controller. Please note this is output as JSON, so it must be something that is accepted by the Laravel Framework's response()->json(...) method | ['success' => true] | | pingable.route.method | string | the lowercased HTTP method the Pingable route responds to. This is anything supported by the Laravel Framework (get, post, etc.) | get | | pingable.route.name | string | the name of the route, so that you can use it across the app, e.g. route(config('pingable.route.name')) | pingable.api.ping | | pingable.route.path | string | the URI where the ping request will be reachable | pingable/api/ping | | pingable.controller | string | the fully-qualified classname of the controller that responds to the pingable.ping route. ⚠️ Once you override this, you are on your own! ⚠️ | Thtg88\Pingable\Http\Controllers\PingController |

License

MIT

Star History Chart