More documentation for the notifications usage in a SPA #53258
Unanswered
Barbapapazes
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm building an SPA with Laravel Notifications.
I'm using database notifications and the only point in the documentation about this usage is a little alert: https://laravel.com/docs/11.x/notifications#accessing-the-notifications:~:text=To%20access%20your%20notifications%20from%20your%20JavaScript%20client%2C%20you%20should%20define%20a%20notification%20controller%20for%20your%20application%20which%20returns%20the%20notifications%20for%20a%20notifiable%20entity%2C%20such%20as%20the%20current%20user.%20You%20may%20then%20make%20an%20HTTP%20request%20to%20that%20controller%27s%20URL%20from%20your%20JavaScript%20client.
I was wondering that it could be great to have more informations and especially a factory to be able to create notifications for tests.
Beta Was this translation helpful? Give feedback.
All reactions