PHP code example of enggarasmoro / laravel-error-alert

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

    

enggarasmoro / laravel-error-alert example snippets


$key = 'enggarasmoro:error-alert:backlog:{'.sha1(config('error-alert.service').'|'.app()->environment()).'}';
Illuminate\Support\Facades\Cache::store(config('error-alert.cache_store') ?: null)->forget($key);
bash
php artisan queue:work redis --queue=inspection-api.error-alerts --tries=3 --timeout=30
bash
# Mengikuti ERROR_ALERT_DELIVERY dan mengirim ke penerima yang dikonfigurasi.
php artisan error-alert:test

# Mengirim langsung tanpa queue, hanya untuk probe ini, dan hanya ke inbox uji.
php artisan error-alert:test --sync [email protected]