From 1e8d458ff0d4583ab075cfcf4371a409c66dcd49 Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Fri, 27 Oct 2023 12:23:00 +0100 Subject: [PATCH] Update 05-customizing-notifications.md --- packages/notifications/docs/05-customizing-notifications.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/notifications/docs/05-customizing-notifications.md b/packages/notifications/docs/05-customizing-notifications.md index b52be65744..630afabc09 100644 --- a/packages/notifications/docs/05-customizing-notifications.md +++ b/packages/notifications/docs/05-customizing-notifications.md @@ -70,7 +70,7 @@ namespace App\Notifications; use Filament\Notifications\Notification as BaseNotification; -class CustomNotification extends BaseNotification +class Notification extends BaseNotification { protected string $size = 'md'; @@ -104,10 +104,10 @@ class CustomNotification extends BaseNotification Next, you should bind your custom `Notification` class into the container inside a service provider's `boot()` method: ```php -use App\Notifications\CustomNotification; +use App\Notifications\Notification; use Filament\Notifications\Notification as BaseNotification; -$this->app->bind(BaseNotification::class, CustomNotification::class); +$this->app->bind(BaseNotification::class, Notification::class); ``` You can now use your custom `Notification` class in the same way as you would with the default `Notification` object.