Comments (1)
Under the hood, Megaphone is just using Laravels default notifications systems.
All you need to do is create a route in your application and access the notifications as described in the documentation https://laravel.com/docs/10.x/notifications#accessing-the-notifications
The only difference you should make is that when pulling the notification relationships from your model, use the "announcements()" method which is added to the model via the HasMegaphone Trait.
If you want to introduce other features like the mark as read functionality, you'll likely need to create your page as a Livewire component and duplicate some of the functionality found in the Megaphone Livewire component.
from megaphone.
Related Issues (18)
- Clear notifications console command doesn't load in custom types HOT 1
- Cannot use ::class with dynamic class name HOT 3
- Add a Listener to refresh component with pusher events (websockets) HOT 8
- Livewire multiple root error in production HOT 2
- Marking unread notification HOT 2
- Admin component needs to merge in types HOT 1
- public $user : data of object and related objects visible for user HOT 9
- UI modifications. HOT 3
- Livewire 3 HOT 5
- Anonymous User Notifications HOT 4
- Use wireui/heroicons for a more consistent looking iconset? HOT 1
- Multiple Notifiable models HOT 1
- Create blade directive to making including the megaphone css easier
- Improve the mark as read UX
- Fix readme line for megaphone css
- Add note regarding Alpine JS include
- Add link to example demo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from megaphone.