New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

bezhansalleh/filament-exceptions

A Simple & Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel
302,107 200

Larablocks Analysis

Compatibility

Trusted maintainer

bezhansalleh/filament-exceptions works with Laravel 11, 12 and 13 (latest release 4.2.2, Nov 5, 2026).

Laravel 9 and 10 in earlier releases.

  • Trusted maintainer: bezhansalleh publishes 7 packages on Larablocks, with 1,678,556 downloads a month between them.

Recommendation checks

Recommended

Recommended by Larablocks: meets all 4 checks.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Nov 5, 2026)
  • 21,894 downloads a month (at least 10,000)
  • 200 GitHub stars (at least 100)

State

Actively maintained
  • Last stable release: Nov 5, 2026.
  • 5 releases in the last 12 months.
  • First released: Sep 4, 2022.
  • Monthly downloads: 21,894, up 121% from six months ago.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require bezhansalleh/filament-exceptions
Latest Version:4.2.2
PHP:^8.2|^8.3
Laravel:11 · 12 · 13
Older releases:9 · 10
License:MIT
Last Updated:Nov 29, 2026
Links: GitHub  ·  Packagist
Maintainer: bezhanSalleh
filament-exceptions-art

FILAMENT 4.x FILAMENT 5.x Packagist Tests Passing Code Style Passing Downloads

Exception Viewer

A simple and beautiful exception viewer for Filament Panels. The plugin records every exception your app throws and lets you browse, inspect and prune them from inside the panel.

Installation

  1. Install the package with Composer:
composer require bezhansalleh/filament-exceptions
  1. Publish and run the migration:
php artisan exceptions:install
  1. Register the plugin in your panel provider:
public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            \BezhanSalleh\FilamentExceptions\FilamentExceptionsPlugin::make()
        ]);
}

That's it. The package hooks into Laravel's exception handler and starts recording exceptions right away.

[!IMPORTANT] The plugin follows Filament's theming rules. Create a custom theme if you haven't already, then add the following line to your theme.css file:

@source '../../../../vendor/bezhansalleh/filament-exceptions/resources/views/**/*.blade.php';

Then build your theme:

npm run build

Recording Control

The plugin records exceptions by default. Control that behavior from the boot() method of your AppServiceProvider.

Stop and Start Recording

use BezhanSalleh\FilamentExceptions\FilamentExceptions;

public function boot(): void
{
    // Stop recording exceptions
    FilamentExceptions::stopRecording();

    // Resume recording
    FilamentExceptions::startRecording();

    // Check whether recording is active
    FilamentExceptions::isRecording();
}

Conditional Recording

Call recordUsing() to decide, per exception, whether the plugin records it:

use BezhanSalleh\FilamentExceptions\FilamentExceptions;

public function boot(): void
{
    // Record only in production
    FilamentExceptions::recordUsing(fn () => app()->isProduction());

    // Skip specific exception types
    FilamentExceptions::recordUsing(function (Throwable $e) {
        return ! $e instanceof \Illuminate\Validation\ValidationException
            && ! $e instanceof \Illuminate\Auth\AuthenticationException;
    });

    // Combine several conditions
    FilamentExceptions::recordUsing(function (Throwable $e) {
        if (! app()->isProduction()) {
            return false;
        }

        // Skip 4xx HTTP exceptions
        if ($e instanceof \Symfony\Component\HttpKernel\Exception\HttpException
            && $e->getStatusCode() < 500) {
            return false;
        }

        return true;
    });
}

Configuration Options

Chain any of the following methods onto the plugin when you register it.

Navigation

FilamentExceptionsPlugin::make()
    ->navigationBadge(bool | Closure $condition = true)
    ->navigationBadgeColor(string | array | Closure $color)
    ->navigationGroup(string | Closure | null $group)
    ->navigationParentItem(string | Closure | null $item)
    ->navigationIcon(string | Closure | null $icon)
    ->activeNavigationIcon(string | Closure | null $icon)
    ->navigationLabel(string | Closure | null $label)
    ->navigationSort(int | Closure | null $sort)
    ->registerNavigation(bool | Closure $shouldRegisterNavigation)
    ->subNavigationPosition(SubNavigationPosition | Closure $position)
FilamentExceptionsPlugin::make()
    ->modelLabel(string | Closure | null $label)
    ->pluralModelLabel(string | Closure | null $label)
    ->titleCaseModelLabel(bool | Closure $condition = true)
    ->globallySearchable(bool | Closure $condition = true)

Mass Pruning

FilamentExceptionsPlugin::make()
    ->modelPruneInterval(CarbonInterface $interval)

[!NOTE] Pruning runs through Laravel's scheduler, so make sure you have it running.

Tenancy

FilamentExceptionsPlugin::make()
    ->scopeToTenant(bool | Closure $condition = true)
    ->tenantOwnershipRelationshipName(string | Closure | null $ownershipRelationshipName)
    ->tenantRelationshipName(string | Closure | null $relationshipName)

General

FilamentExceptionsPlugin::make()
    ->cluster(string | Closure | null $cluster)
    ->slug(string | Closure | null $slug)

A combined example:

return $panel
    ->plugins([
        FilamentExceptionsPlugin::make()
            ->navigationLabel('Error Logs')
            ->navigationIcon('heroicon-o-bug-ant')
            ->navigationBadge()
            ->navigationGroup('System')
            ->modelPruneInterval(now()->subDays(7))
    ]);

Custom Exception Model

  1. Extend the base model:
<?php

namespace App\Models;

use BezhanSalleh\FilamentExceptions\Models\Exception as BaseException;

class MyCustomException extends BaseException
{
    ...
}
  1. Register it in the boot() method of a service provider, for example AppServiceProvider:
use App\Models\MyCustomException;
use BezhanSalleh\FilamentExceptions\FilamentExceptions;
...
   public function boot()
   {
       FilamentExceptions::model(MyCustomException::class);
   }
...

Translations

Publish the translations:

php artisan vendor:publish --tag=filament-exceptions-translations

Testing

composer test

Version Support

Only the latest major plugin line receives active development. Older lines stay installable for legacy projects but get no new features; they only receive security fixes while their Filament target is still supported upstream.

Plugin Filament Status
4.x v4 & v5 Active — new features + bug fixes (lives on main)
3.x v3 End of life — follows Filament v3 EOL
2.x v3 End of life — follows Filament v3 EOL
1.x v2 End of life

See CHANGELOG for migration notes between majors.

Changelog

See CHANGELOG for the list of recent changes.

Contributing

See CONTRIBUTING for details.

Security Vulnerabilities

Review our security policy to learn how to report security vulnerabilities.

Credits

License

The MIT License (MIT). See the License File for more information.

Related Packages

bezhansalleh/filament-panel-switch

Easily Switch between your Filament Panels

761,632 165
bezhansalleh/filament-addons

A Set of Filament Component Addons with different designs and extra functionalit...

16,994 54
bezhansalleh/filament-language-switch

Zero config Language Switch(Changer/Localizer) plugin for filamentphp admin

1,992,236 365
bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

6,875,689 2,833
bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

278,051 215

Version History

Version Released PHP Laravel License
4.2.2 ^8.2|^8.3 ^11.28|^12.0|^13.0 MIT
4.2.1 ^8.2|^8.3 ^11.28|^12.0|^13.0 MIT
4.2.0 ^8.2|^8.3 ^11.28|^12.0|^13.0 MIT
4.1.0 ^8.2 ^11.28|^12.0 MIT
4.0.0 ^8.2 ^11.28|^12.0 MIT