1. Go to this page and download the library: Download derkekser/laravel-paladin 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/ */
derkekser / laravel-paladin example snippets
protected function schedule(Schedule $schedule)
{
// Run healing every hour
$schedule->command('paladin:heal')->hourly();
// Or run healing daily at 2 AM
$schedule->command('paladin:heal')->dailyAt('02:00');
}
use Kekser\LaravelPaladin\Models\HealingAttempt;
// Get all healing attempts
$attempts = HealingAttempt::all();
// Get only successful fixes
$fixes = HealingAttempt::fixed()->get();
// Get failed attempts
$failed = HealingAttempt::failed()->get();
// Get attempts for a specific issue type
$attempts = HealingAttempt::where('issue_type', 'exception')->get();