PHP code example of jeremykenedy / laravel-observability

1. Go to this page and download the library: Download jeremykenedy/laravel-observability 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/ */

    

jeremykenedy / laravel-observability example snippets


$detector = app(ProviderDetector::class);
$detector->detect();
$detector->getActiveProviders();
$detector->getProvidersByType('frontend');
$detector->getFrontendSnippets();

$uptime = app(UptimeService::class);
$uptime->getUptimeRobotStatus();
$uptime->getStatusCakeStatus();
bash
php artisan vendor:publish --tag=observability-config
bash
php artisan observability:update
bash
php artisan observability:update --css=bootstrap5 --frontend=vue
bash
php artisan observability:switch --css=bootstrap5
php artisan observability:switch --frontend=livewire
php artisan observability:switch --css=tailwind --frontend=vue