ToastLevel
Defines the severity level of toast notifications.Enum values
Success level toast. Used for positive confirmation messages.Value:
'success'Error level toast. Used for error messages and failures.Value:
'error'Info level toast. Used for informational messages.Value:
'info'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
Position toasts in the top right corner of the screen.Value:
'top-right'Position toasts in the top left corner of the screen.Value:
'top-left'Position toasts in the top center of the screen.Value:
'top-center'Position toasts in the bottom right corner of the screen.Value:
'bottom-right'Position toasts in the bottom left corner of the screen.Value:
'bottom-left'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.