Sander
Explore posts from serversAttach Multiple | How does it work?
So after initially looking at this post I thought it would be straight forward:
https://filamentphp.com/tricks/allow-multiple-records-in-a-attach-select
However this alone is not enough as it only attached the first record selected even after implementing this:
Any advice? The only 'using' method I see is
->using()
so not very descriptive.22 replies
I broke media library, only works on edit and not on create.
I have a very unusual situation...
Forms\Components\SpatieMediaLibraryFileUpload
works on edit but not on create somehow...
There are 0 errors and no exceptions fired. I am not sure what is going on, any help troubleshooting the creation of the record would be awesome.
Storage link is already put in place and the APP_URL is http://127.0.0.1:8000
SESSION_DOMAIN=127.0.0.1
This is the case for 2 models, Article and Course, course must be the easiest to trouble shoot as it doesn't have many things going on.9 replies
getTableReorderColumn() pivot column
I have 3 models one of which is Pivot::class
Article, Course, ArticleCourse
The pivot uses eloquent-sortable, the Pivot implements Sortable
and uses the SortableTrait
.
Upon attaching thus creating a pivot record the 'sort_when_creating' => true,
doesn't seem to fire.
Also with:
When dragging and dropping the records I get:
Any suggestions as how to solve this issue? Are there existing solutions available?
Justification:
Some articles can be reused within other courses lets say a common recurring one like how to install something.
It is to be used within a many to many relationship manager2 replies