Skip to main content

ToastLevel

Defines the severity level of toast notifications.

Enum values

string
Success level toast. Used for positive confirmation messages.Value: 'success'
string
Error level toast. Used for error messages and failures.Value: 'error'
string
Info level toast. Used for informational messages.Value: 'info'
string
Warning level toast. Used for warning messages.Value: 'warning'

Source

Usage examples

The ToastLevel enum is automatically converted to lowercase string values when passed to the frontend.

ToastPosition

Defines the screen position where toast notifications appear.

Enum values

string
Position toasts in the top right corner of the screen.Value: 'top-right'
string
Position toasts in the top left corner of the screen.Value: 'top-left'
string
Position toasts in the top center of the screen.Value: 'top-center'
string
Position toasts in the bottom right corner of the screen.Value: 'bottom-right'
string
Position toasts in the bottom left corner of the screen.Value: 'bottom-left'
string
Position toasts in the bottom center of the screen.Value: 'bottom-center'

Source

Usage examples

The position value is configured in the config/inertia-toast.php file and passed to the frontend Toaster component.