Skip to content
Discussion options

You must be logged in to vote

Because of using Notifiable trait in models like User model, I think that trait needs to be extended or overriding to consider your DatabaseNotification model. And then we can use that trait instead of default one.
I didn't test this scenario, but it is good idea if you check the src/Illuminate/Notifications/HasDatabaseNotifications.php you can see the trait is using default DatabaseNotification and so it can be overridden.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rileysiemens
Comment options

@iazaran
Comment options

Answer selected by rileysiemens
@rileysiemens
Comment options

@rileysiemens
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants