Notifications not shown on redirect

I am trying to implement notifications outside the panel. Why isn't any notification shown when using redirects ?
Route::get("test", function(){
Notification::make()
->body("test")
->title("test")
->success()
->send();
return redirect("/");
});
Route::get("test", function(){
Notification::make()
->body("test")
->title("test")
->success()
->send();
return redirect("/");
});
Without redirects, it works (so yes, I have added @livewire('notifications') to the template. My current usecase is verifying a registered email address and then redirect to the homepage, where I wanna show the user a notification, that it was a success.
3 Replies
LeandroFerreira
are you using livewire redirect ?
Laravel
Redirecting | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
bernhard
bernhardOP2w ago
no, because this is not a livewire component
LeandroFerreira
If you follow this section, I think this should work. Maybe you could provide a minimal repo on Github to reproduce this issue
Want results from more Discord servers?
Add your server