custom select in lucid relationships #1398
Unanswered
farshadfahimi
asked this question in
Help
Replies: 2 comments 3 replies
-
Hmm, |
Beta Was this translation helpful? Give feedback.
3 replies
-
right know How should pass the data to model in the relation. because I'm not in the controller to create an instance and assign data to it |
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
-
I have a modl like below and need to append the
slug
in the relation selectThe
product
model hasslug
.in my
productsMedia
table I haveid,type
and I need to access theproduct.slug
in the this model with select theslug
in relation query. but it change my query even if I use theraw query
.I'm access the media all the time with this relation so
How should I achive this?
Beta Was this translation helpful? Give feedback.
All reactions