Nova notifications

302 Views Asked by At

I create notifications

     $notification = Laravel\Nova\Notifications\NovaNotification::make()
                ->message($softsMessage)
                ->type('info');

But I want to create 2 lines in one notification. How I can do it?

1

There are 1 best solutions below

0
keizah7 On

To create a notification with multiple lines in Laravel Nova, you can make use of line breaks to format the message.

$notification = Laravel\Nova\Notifications\NovaNotification::make()
    ->message("First line of the notification\nSecond line of the notification")
    ->type('info');