PHP code example of modernmcguire / sentry-cron-monitoring-laravel

1. Go to this page and download the library: Download modernmcguire/sentry-cron-monitoring-laravel 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/ */

    

modernmcguire / sentry-cron-monitoring-laravel example snippets


$schedule->call(function () {
    DB::table('recent_users')->delete();
})
->monitor('monitor-id-from-sentry')
->daily();
bash
php artisan vendor:publish --provider="Modernmcguire\SentryCronMonitoringLaravel\SentryCronMonitoringLaravelServiceProvider"