> Source: https://laravilt.com/docs/notifications/introduction

# Notifications

Toast and database notification system.

## Features

| Feature | Description |
|---------|-------------|
| [Types](https://github.com/laravilt/laravilt/blob/HEAD/docs/notifications/types/introduction) | Toast & database |
| [Features](https://github.com/laravilt/laravilt/blob/HEAD/docs/notifications/features/actions) | Actions, sounds, config |
| [Custom](https://github.com/laravilt/laravilt/blob/HEAD/docs/notifications/custom/introduction) | Custom classes |

## Quick Start

```php
<?php

use Laravilt\Notifications\Notification;

Notification::make()
    ->title('Saved successfully')
    ->success()
    ->send();
```

## Notification Types

```php
<?php

use Laravilt\Notifications\Notification;

// Success (green)
Notification::make()->title('Success')->success()->send();

// Warning (yellow)
Notification::make()->title('Warning')->warning()->send();

// Danger (red)
Notification::make()->title('Error')->danger()->send();

// Info (blue)
Notification::make()->title('Info')->info()->send();
```

## With Body & Icon

```php
<?php

use Laravilt\Notifications\Notification;

Notification::make()
    ->title('Post Published')
    ->body('Your post is now visible.')
    ->icon('CheckCircle')
    ->success()
    ->send();
```

## Database Notifications

```php
<?php

use Laravilt\Notifications\Notification;

Notification::make()
    ->title('New Order')
    ->body('Order #12345 received.')
    ->icon('ShoppingCart')
    ->sendToDatabase(auth()->user());
```

## Related

- [Toast](https://github.com/laravilt/laravilt/blob/HEAD/docs/notifications/types/toast) - Temporary messages
- [Database](https://github.com/laravilt/laravilt/blob/HEAD/docs/notifications/types/database) - Persistent notifications
