Widget table custom query
Hi all, i've a widget that aims to show the latest casting like this:
but
Casting::query()->where('user_id', auth()->id())->latest()->take(5)
seems not work1 Reply
I'm experiencing that inside ->query(...) i can't use take() or limit(). Maybe the reason is that they only are available in the collection and not in query Builder?
Sounds weird....how can i limit the result with query builder inside
->query()
function?