1. Go to this page and download the library: Download sbasu/laravel-actuator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sbasu / laravel-actuator example snippets
return [
// URI prefix for all endpoints
'path' => env('ACTUATOR_PATH', 'actuator'),
// Middleware applied to actuator endpoints
'middleware' => ['api'],
// Enable/disable individual health indicators
'indicators' => [
'database' => true,
'disk_space' => true,
'cache' => true,
'queue' => true,
],
// Metrics collection settings
'metrics' => [
'enabled' => true,
'sample_rate' => 1.0,
],
// Show detailed health information in responses
'show_details' => true,
// Show environment variables (disabled by default for security)
'show_env' => env('ACTUATOR_SHOW_ENV', false),
// Log all actuator requests
'log_access' => false,
];