How would I generate a table of 'auth()->user()->notifications()' Notifiable trait #1203
Replies: 1 comment
-
I found my issue. I was using the "query" method instead of the "builder" and was also specifying a model
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I have attempted a few things but cannot get it to return only the auth users notifications (it returns all notifications)
When i run
$n = auth()->user()->notifications()->toSql()
in tinker i get the following query with no parametersBeta Was this translation helpful? Give feedback.
All reactions