PHP code example of tarique / laravel-app-monitor

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

    

tarique / laravel-app-monitor example snippets


return [
    'admin_email' => env('APPMONITOR_ADMIN_EMAIL', '[email protected]'),
    'notify_on_down' => env('APPMONITOR_NOTIFY_ON_DOWN', true),
    'notify_on_error' => env('APPMONITOR_NOTIFY_ON_ERROR', true),
    'error_codes' => [500, 502, 503, 504, 413],
];
bash
php artisan vendor:publish --provider="Tarique\LaravelAppMonitor\AppMonitorServiceProvider" --tag=config
bash
php artisan vendor:publish --provider="Tarique\LaravelAppMonitor\AppMonitorServiceProvider" --tag=views
bash
php artisan queue:table
php artisan migrate
bash
php artisan queue:work