Laravel Horizon
It is possible to connect a Flare project with your Laravel Horizon installation. This way, you can quickly jump from an exception to the corresponding job in Horizon and retry it.
Configuration
Within your project settings, open up the Laravel page:
Provide the URL to your Laravel Horizon dashboard(most of the time this looks
like https://your-app-domain.com/horizon
) and click save.
Usage
When viewing an exception in Flare triggered by a Horizon Job, you can now easily jump to the corresponding job in Horizon:
Please notice, by default Laravel Horizon will keep the failed job information for seven days, failed jobs older than
seven days will not be available in Horizon anymore. You can adjust this setting in your horizon.php
configuration
by updating the trim
option:
'trim' => [
'recent' => 60,
'pending' => 60,
'completed' => 60,
'recent_failed' => 43200, // 30 days
'failed' => 43200, // 30 days
'monitored' => 10080,
],