Skip to content

u/bTrixy

In this archive from Feb 2013 to Jan 2020

1
posts
64
comments
0
media
150
score

Constrain eager loads on a pivot

Let me sketch the situation Tables and models -products -languages -language_product product_id language_id slug Products and languages are connected with many to many. Now I have a function .show ($slug) where I want to get a product with a certain slug. Product::with(['language' => function($query...

2 points2 comments
Open on Reddit

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.