Skip to content

Query #18

Jul 29, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I respond to my selfe (sorry...)
$this->posts = Post::where('state_id', 5)
->with(['user', 'categoria', 'tags'])
->whereHasBookmark(auth()->user()) // this is the answer
->orderBy('publicar', 'desc')
->get();

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@riccardodallavia
Comment options

Answer selected by riccardodallavia
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