Skip to content

Commit

Permalink
Merge pull request #37 from vanhooff/main
Browse files Browse the repository at this point in the history
Update README.md to include Filament panel plugin registration
  • Loading branch information
bezhanSalleh authored Oct 17, 2023
2 parents 3abeb5e + 3412b5e commit 89f33c8
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,29 @@ A Simple & Beautiful Exception Viewer for FilamentPHP's Admin Panel

## Installation

You can install the package via composer:
1. You can install the package via composer:

```bash
composer require bezhansalleh/filament-exceptions
```

Publish and run the migration via:
2. Publish and run the migration via:
```bash
php artisan exceptions:install
```

Activate the plugin by editing your App's Exception Handler as follow:
3. Register the plugin for the Filament Panel
```php
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
\BezhanSalleh\FilamentExceptions\FilamentExceptionsPlugin::make()
]);
}
```

4. Activate the plugin by editing your App's Exception Handler as follow:

```php
<?php
Expand Down

0 comments on commit 89f33c8

Please sign in to comment.