© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago
sharinganglow

multiple file upload

Hello everyone, I broke my brain over the solution of the problem:

I have an unchangeable form that is shown during moderation, I need to add a display of several unchangeable pictures there, which are stored in the directory, where its name is the id of the picture in the database

These images are stored in the images table as follows:
id | 1
imageable_id | 31446
imageable_type | App\Models\Question
path | questions/31446/whoooa_by_ready_2017_dbhp7tl-fullview.jpg
type | source
created_at | 2024-10-02 10:39:40
updated_at | 2024-10-02 10:39:40

And related to the model of issues with such a connection:

public function sourceImages(): MorphMany
{
return $this->morphMany(Image::class, 'imageable')
->where('type', self::SOURCE_IMAGE_TYPE);
}
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filament Multiple File Upload
FilamentFFilament / ❓┊help
2y ago
Multiple Image file Upload
FilamentFFilament / ❓┊help
3y ago
multiple file upload - missing some files
FilamentFFilament / ❓┊help
2y ago
Multiple file upload grid Reorderable not working
FilamentFFilament / ❓┊help
2y ago