Set order column on addMedia() ? #3158
Answered
by
ignacio-dev
ignacio-dev
asked this question in
Q&A
-
Hi, Is it possible to set the |
Beta Was this translation helpful? Give feedback.
Answered by
ignacio-dev
Jan 16, 2023
Replies: 1 comment
-
I found the answer. You can chain a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ignacio-dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the answer. You can chain a
setOrder(int $order)
method like so$model->addMedia($file)->setOrder(3)->toMediaCollection();